3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo 'bla'; ECHO 'blee'; ecHO 'ho,ho'; echo TRUE; echo true; echo trUE; echo PHP_OS; echo php_OS; var_dump(TRUE,FALSE,NULL); // they have data types and what has data types? variables; not keywords! function true(){ return 'The truth ...'; } function false(){ return 'Do not be false...'; } function null(){ return 't\'is nothing at all...'; } echo true(); echo false(); echo null();
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.17, 8.3.0 - 8.3.4
blableeho,ho111Linux Fatal error: Uncaught Error: Undefined constant "php_OS" in /in/A24SQ:9 Stack trace: #0 {main} thrown in /in/A24SQ on line 9
Process exited with code 255.
Output for 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
blableeho,ho111Linux Warning: Use of undefined constant php_OS - assumed 'php_OS' (this will throw an Error in a future version of PHP) in /in/A24SQ on line 9 php_OSbool(true) bool(false) NULL The truth ...Do not be false...t'is nothing at all...
Output for 4.3.0 - 4.3.11, 4.4.0 - 4.4.9, 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.37, 5.6.0 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.33
blableeho,ho111Linux Notice: Use of undefined constant php_OS - assumed 'php_OS' in /in/A24SQ on line 9 php_OSbool(true) bool(false) NULL The truth ...Do not be false...t'is nothing at all...

preferences:
185.83 ms | 404 KiB | 376 Q