3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array[something] = "Something is not a string. It's a constant. But because it's not found, PHP will assume you meant a string."; //And if you error reporting is off, you'll never know.
Output for 7.2.0
Warning: Use of undefined constant something - assumed 'something' (this will throw an Error in a future version of PHP) in /in/0CXk3 on line 3
Output for 4.3.0 - 5.0.5, 5.1.1 - 7.1.10
Notice: Use of undefined constant something - assumed 'something' in /in/0CXk3 on line 3
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/0CXk3 on line 5
Process exited with code 255.