3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo { const TRUE = 0; const FALSE = 1; if (strpos("foobarbaz", "bar") !== FALSE) { echo "It's There!"; } else { echo "It's Not There!"; } }
Output for 5.3.0 - 5.3.27, 5.4.0 - 5.4.19
Fatal error: Cannot redeclare constant 'TRUE' in /in/chYpW on line 4
Process exited with code 255.

preferences:
178.75 ms | 1395 KiB | 55 Q