3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(eval("class _\1 { } return new _\1();"));
Output for 5.3.28 - 5.3.29, 5.4.18 - 7.1.0
Warning: Unexpected character in input: '' (ASCII=1) state=0 in /in/7fp6b(3) : eval()'d code on line 1 Warning: Unexpected character in input: '' (ASCII=1) state=0 in /in/7fp6b(3) : eval()'d code on line 1 object(_)#1 (0) { }
Output for 5.3.0 - 5.3.27, 5.4.0 - 5.4.17
Warning: Unexpected character in input: '' (ASCII=1) state=0 in /in/JZ7PI(3) : eval()'d code on line 1 Warning: Unexpected character in input: '' (ASCII=1) state=0 in /in/JZ7PI(3) : eval()'d code on line 1 object(_)#1 (0) { }
Output for 5.0.0 - 5.2.17
Warning: Unexpected character in input: '' (ASCII=1) state=1 in /in/JZ7PI(3) : eval()'d code on line 1 Warning: Unexpected character in input: '' (ASCII=1) state=1 in /in/JZ7PI(3) : eval()'d code on line 1 object(_)#1 (0) { }
Output for 4.3.1 - 4.4.9
Warning: Unexpected character in input: '' (ASCII=1) state=1 in /in/JZ7PI(3) : eval()'d code on line 1 Warning: Unexpected character in input: '' (ASCII=1) state=1 in /in/JZ7PI(3) : eval()'d code on line 1 object(_)(0) { }
Output for 4.3.0
Warning: Unexpected character in input: '' (ASCII=1) state=1 in /in/7fp6b(3) : eval()'d code on line 1 Warning: Unexpected character in input: '' (ASCII=1) state=1 in /in/7fp6b(3) : eval()'d code on line 1 object(_)(0) { }