3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set('zend.assertions', -1 $things = "thing"; $here = "here"; assert( (function() use($things, $here) { /* statements here */ return false; })(), new RuntimeException("nope!")); ?>
Output for 5.4.2 - 5.4.45, 5.5.24 - 5.5.29, 5.6.7 - 5.6.13
Parse error: syntax error, unexpected '$things' (T_VARIABLE) in /in/ef1rL on line 4
Process exited with code 255.

preferences:
184.74 ms | 1399 KiB | 63 Q