PHP Interactive Terminal

Hi! I hope everyone is doing great. I was wondering if anyone knows how to get the interactive terminal bash like here https://www.codecademy.com/courses/learn-php/projects/save-the-farm installed?

Do you have a mac or windows? If you have a mac you just use the terminal. For windows there are options like wsl, or (excessive option) a virtual box running ubuntu or something.