3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php call_user_func('call_user_func','assert','include z',new stdClass);
Output for 7.1.0 - 7.2.0
Warning: Cannot call assert() with string argument dynamically in /in/X3sHN on line 3
Output for 7.0.0 - 7.0.20
Notice: Use of undefined constant z - assumed 'z' in /in/X3sHN(3) : assert code on line 1 Warning: include(z): failed to open stream: No such file or directory in /in/X3sHN(3) : assert code on line 1 Warning: include(): Failed opening 'z' for inclusion (include_path='.:') in /in/X3sHN(3) : assert code on line 1 Catchable fatal error: Object of class stdClass could not be converted to string in /in/X3sHN on line 3
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/X3sHN on line 3
Output for 5.3.19 - 5.3.29
Warning: assert() expects exactly 1 parameter, 2 given in /in/X3sHN on line 3