3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = new stdClass; var_dump(call_user_func('call_user_func','assert','include a\.php',$a));
based on eBhXX
Output for 7.1.0 - 7.2.0
Warning: Cannot call assert() with string argument dynamically in /in/N1Cek on line 4 bool(false)
Output for 7.0.0 - 7.0.20
Parse error: syntax error, unexpected '.', expecting identifier (T_STRING) in /in/N1Cek(4) : assert code on line 1 Fatal error: Object of class stdClass could not be converted to string in /in/N1Cek on line 4
Process exited with code 255.
Output for 5.4.9 - 5.6.28
Warning: assert() expects parameter 2 to be string, object given in /in/N1Cek on line 4 NULL
Output for 5.3.19 - 5.3.29
Warning: assert() expects exactly 1 parameter, 2 given in /in/N1Cek on line 4 NULL