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',$a));
based on N1Cek
Output for 7.1.0 - 7.2.0
Warning: Cannot call assert() with string argument dynamically in /in/AdjD1 on line 4 bool(false)
Output for 7.0.0 - 7.0.20
Notice: Use of undefined constant a - assumed 'a' in /in/AdjD1(4) : assert code on line 1 Warning: include(a): failed to open stream: No such file or directory in /in/AdjD1(4) : assert code on line 1 Warning: include(): Failed opening 'a' for inclusion (include_path='.:') in /in/AdjD1(4) : assert code on line 1 Catchable fatal error: Object of class stdClass could not be converted to string in /in/AdjD1 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/AdjD1 on line 4 NULL
Output for 5.3.19 - 5.3.29
Warning: assert() expects exactly 1 parameter, 2 given in /in/AdjD1 on line 4 NULL