3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $obj1 = new stdClass; $obj2 = new stdClass; assert($obj1 != $obj2, '!='); assert($obj1 !== $obj2); // Prove that fails are shown.
Output for 5.4.8 - 7.1.0
Warning: assert(): != failed in /in/sUEKs on line 4
Output for 5.3.0 - 5.4.7
Warning: assert() expects exactly 1 parameter, 2 given in /in/sUEKs on line 4
Output for 5.0.0 - 5.0.5, 5.1.1 - 5.2.17
Warning: Wrong parameter count for assert() in /in/sUEKs on line 4
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/sUEKs on line 6
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Warning: Wrong parameter count for assert() in /in/sUEKs on line 4 Warning: assert(): Assertion failed in /in/sUEKs on line 5
Output for 4.3.0 - 4.3.1
Warning: Wrong parameter count for assert() in /in/sUEKs on line 4 Warning: assert() [http://www.php.net/function.assert]: Assertion failed in /in/sUEKs on line 5