3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $_REQUEST['foo'] = 'baz'; var_dump($_REQUEST); eval('this aint gonna work'); 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 'aint' (T_STRING) in /in/j8W8C(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 'aint' (T_STRING) in /in/j8W8C(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 'aint' (T_STRING) in /in/j8W8C(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.0 - 5.3.29
array(1) { ["foo"]=> string(3) "baz" } Parse error: syntax error, unexpected T_STRING in /in/j8W8C(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.5 - 4.4.1, 5.0.0 - 5.0.5
array(1) { ["foo"]=> string(3) "baz" } Parse error: parse error, unexpected T_STRING in /in/j8W8C(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/j8W8C(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/j8W8C"]=> string(0) "" ["foo"]=> string(3) "baz" } Parse error: parse error, unexpected T_STRING in /in/j8W8C(5) : eval()'d code on line 1 array(2) { ["/in/j8W8C"]=> string(0) "" ["foo"]=> string(3) "baz" } array(2) { ["/in/j8W8C"]=> string(0) "" ["foo"]=> string(3) "baz" }
Process exited with code 255.