3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php ini_set('zend.assertions', -1); $things = "thing"; $here = "here"; assert( (function() use($things, $here) { /* statements here */ return false; })(), new RuntimeException("nope!")); ?>
based on ef1rL
Output for 7.0.0 - 7.2.0
Warning: zend.assertions may be completely enabled or disabled only in php.ini in /in/oCU25 on line 3 Warning: assert(): RuntimeException: nope! in /in/oCU25:10 Stack trace: #0 {main} failed in /in/oCU25 on line 10
Output for 5.3.18 - 5.6.21
Parse error: syntax error, unexpected '(' in /in/oCU25 on line 10
Process exited with code 255.