3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php assert(1==2); //assert(1==2, "1 does not equal 2");
based on BP3aM
Output for 7.0.0 - 7.1.0
Warning: assert(): assert(1 == 2) failed in /in/rYPnT on line 2
Output for 4.3.2 - 5.0.5, 5.1.1 - 5.6.28, hhvm-3.12.0
Warning: assert(): Assertion failed in /in/rYPnT on line 2
Output for hhvm-3.10.0
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/rYPnT on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Warning: assert() [http://www.php.net/function.assert]: Assertion failed in /in/rYPnT on line 2