3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php eval('echo 0x0+1;'); eval('echo 0b0+1;');
Output for 5.4.1 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
11
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.4.0
12
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.2.17, 5.3.11 - 5.3.29
1 Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /in/EEWPn(3) : eval()'d code on line 1
Process exited with code 255.
Output for 5.3.0 - 5.3.10
2 Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /in/EEWPn(3) : eval()'d code on line 1
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
1 Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in /in/EEWPn(3) : eval()'d code on line 1
Process exited with code 255.
Output for 4.3.2 - 4.3.4
1 Parse error: parse error, expecting `','' or `';'' in /in/EEWPn(3) : eval()'d code on line 1
Process exited with code 255.