3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(bin2hex(get_class(eval("class _\1 { } return new _\1();"))));
Output for 5.3.0 - 5.6.28, 7.0.0 - 7.1.0
Warning: Unexpected character in input: '' (ASCII=1) state=0 in /in/nV3N1(3) : eval()'d code on line 1 Warning: Unexpected character in input: '' (ASCII=1) state=0 in /in/nV3N1(3) : eval()'d code on line 1 string(2) "5f"
Output for hhvm-3.10.0 - 3.12.0
string(2) "5f"
Output for 5.2.3 - 5.2.17
Warning: Unexpected character in input: '' (ASCII=1) state=1 in /in/nV3N1(3) : eval()'d code on line 1 Warning: Unexpected character in input: '' (ASCII=1) state=1 in /in/nV3N1(3) : eval()'d code on line 1 string(2) "5f"
Output for 4.3.0 - 5.2.2
<br /> <b>Warning</b>: Unexpected character in input: '' (ASCII=1) state=1 in <b>/in/nV3N1(3) : eval()'d code</b> on line <b>1</b><br /> <br /> <b>Warning</b>: Unexpected character in input: '' (ASCII=1) state=1 in <b>/in/nV3N1(3) : eval()'d code</b> on line <b>1</b><br /> string(2) "5f"