3v4l.org

run code in 500+ PHP versions simultaneously
<?php namespace Foo { define("TRUE", 0); define("NULL", 1); var_dump(true, TRUE, NULL); }
Output for 8.5.11 - 8.5.13, 8.6.0
Warning: Constant TRUE already defined, this will be an error in PHP 9 in /in/QplPf on line 4 Warning: Constant NULL already defined, this will be an error in PHP 9 in /in/QplPf on line 5 bool(true) bool(true) NULL
Output for 8.2.35 - 8.2.36, 8.3.0 - 8.3.37, 8.4.1 - 8.4.28
Warning: Constant TRUE already defined in /in/QplPf on line 4 Warning: Constant NULL already defined in /in/QplPf on line 5 bool(true) bool(true) NULL

preferences:
24.18 ms | 1167 KiB | 6 Q