3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function isCorrect() { return true; } assert(isCorrect('') === true); assert(isCorrect('()') === true); assert(isCorrect('{()}') === true); assert(isCorrect('{()}{}') === true); assert(isCorrect('(())') === true); assert(isCorrect('{({({({()})})})}') === true); assert(isCorrect('{(})') === false);
Output for 7.0.0 - 7.1.0
Warning: assert(): assert(isCorrect('{(})') === false) failed in /in/upa2A on line 14
Output for 4.3.2 - 5.6.28
Warning: assert(): Assertion failed in /in/upa2A on line 14
Output for 4.3.0 - 4.3.1
Warning: assert() [http://www.php.net/function.assert]: Assertion failed in /in/upa2A on line 14