3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = new stdClass; call_user_func('call_user_func','assert','echo "haha";',$a);
based on MLnZS
Output for 7.1.0 - 7.2.0
Warning: Cannot call assert() with string argument dynamically in /in/M7B6Y on line 4
Output for 7.0.0 - 7.0.20
Parse error: syntax error, unexpected 'echo' (T_ECHO), expecting ';' in /in/M7B6Y(4) : assert code on line 1 Fatal error: Object of class stdClass could not be converted to string in /in/M7B6Y 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/M7B6Y on line 4
Output for 5.3.19 - 5.3.29
Warning: assert() expects exactly 1 parameter, 2 given in /in/M7B6Y on line 4