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 'null is nothing at all...'; } echo true(); echo false(); echo null();
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
blableeho,ho111Linux Fatal error: Uncaught Error: Undefined constant "php_OS" in /in/VXskH:9 Stack trace: #0 {main} thrown in /in/VXskH on line 9
Process exited with code 255.
Output for 7.2.0 - 7.2.33, 7.3.16 - 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/VXskH on line 9 php_OSbool(true) bool(false) NULL The truth ...Do not be false...null 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.38, 5.6.0 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.20
blableeho,ho111Linux Notice: Use of undefined constant php_OS - assumed 'php_OS' in /in/VXskH on line 9 php_OSbool(true) bool(false) NULL The truth ...Do not be false...null is nothing at all...

preferences:
221.27 ms | 404 KiB | 357 Q