3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $_REQUEST['foo'] = 'baz'; var_dump($_REQUEST); eval('if (0) {lulz#@}'); var_dump($_REQUEST); @include_once(__DIR__ . '/somenonexistentfile.php'); var_dump($_REQUEST);
Output for 7.0.0 - 7.1.0
array(1) { ["foo"]=> string(3) "baz" } Parse error: syntax error, unexpected end of file in /in/gWUS4(5) : eval()'d code on line 1
Process exited with code 255.
Output for 5.4.11 - 5.6.28
array(1) { ["foo"]=> string(3) "baz" } Parse error: syntax error, unexpected end of file in /in/gWUS4(5) : eval()'d code on line 1 array(1) { ["foo"]=> string(3) "baz" } array(1) { ["foo"]=> string(3) "baz" }
Output for 5.4.0 - 5.4.10
array(1) { ["foo"]=> string(3) "baz" } Parse error: syntax error, unexpected end of file in /in/gWUS4(5) : eval()'d code on line 1 array(1) { ["foo"]=> string(3) "baz" } array(1) { ["foo"]=> string(3) "baz" }
Process exited with code 255.
Output for 4.4.2 - 4.4.9, 5.1.1 - 5.3.29
array(1) { ["foo"]=> string(3) "baz" } Parse error: syntax error, unexpected $end in /in/gWUS4(5) : eval()'d code on line 1 array(1) { ["foo"]=> string(3) "baz" } array(1) { ["foo"]=> string(3) "baz" }
Process exited with code 255.
Output for 5.1.0
array(1) { ["foo"]=> string(3) "baz" }
Process exited with code 137.
Output for 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
array(1) { ["foo"]=> string(3) "baz" } Parse error: parse error, unexpected $ in /in/gWUS4(5) : eval()'d code on line 1 array(1) { ["foo"]=> string(3) "baz" } array(1) { ["foo"]=> string(3) "baz" }
Process exited with code 255.
Output for 4.3.2 - 4.3.4
array(1) { ["foo"]=> string(3) "baz" } Parse error: parse error in /in/gWUS4(5) : eval()'d code on line 1 array(1) { ["foo"]=> string(3) "baz" } array(1) { ["foo"]=> string(3) "baz" }
Process exited with code 255.
Output for 4.3.0 - 4.3.1
array(2) { ["/in/gWUS4"]=> string(0) "" ["foo"]=> string(3) "baz" } Parse error: parse error, unexpected $ in /in/gWUS4(5) : eval()'d code on line 1 array(2) { ["/in/gWUS4"]=> string(0) "" ["foo"]=> string(3) "baz" } array(2) { ["/in/gWUS4"]=> string(0) "" ["foo"]=> string(3) "baz" }
Process exited with code 255.