3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $expected = 1; $actual = true; $code = '$expected === $actual;'; var_export(assert($code)); echo "\n"; var_export(eval("return $code;"));
Output for 7.0.1 - 7.1.0
Warning: assert(): assert($code): "$expected === $actual;" failed in /in/qabZK on line 5 false false
Output for 7.0.0
Warning: assert(): assert($code): "$expected === $actual;" failed in /in/qabZK on line 5 NULL false
Output for 4.3.2 - 5.6.28, hhvm-3.12.0
Warning: assert(): Assertion "$expected === $actual;" failed in /in/qabZK on line 5 NULL false
Output for hhvm-3.10.0

Process exited with code 153.
Output for 4.3.0 - 4.3.1
Warning: assert() [http://www.php.net/function.assert]: Assertion "$expected === $actual;" failed in /in/qabZK on line 5 NULL false