3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php set_error_handler(function(){ print_r(debug_backtrace()); }); class x { static function y() { eval("var_dump(\$blaat);"); include '/tmp/asdf.php'; } } x::y();
based on sfGeO

Abusive script

This script was stopped while abusing our resources

Output for 7.0.0 - 7.2.11
Array ( [0] => Array ( [file] => /in/0hrOp(9) : eval()'d code [line] => 1 [function] => {closure} [args] => Array ( [0] => 8 [1] => Undefined variable: blaat [2] => /in/0hrOp(9) : eval()'d code [3] => 1 [4] => Array ( ) ) ) [1] => Array ( [file] => /in/0hrOp [line] => 9 [function] => eval ) [2] => Array ( [file] => /in/0hrOp [line] => 14 [function] => y [class] => x [type] => :: [args] => Array ( ) ) ) NULL Array ( [0] => Array ( [file] => /in/0hrOp [line] => 10 [function] => {closure} [args] => Array ( [0] => 2 [1] => include(/tmp/asdf.php): failed to open stream: No such file or directory [2] => /in/0hrOp [3] => 10 [4] => Array ( ) ) ) [1] => Array ( [file] => /in/0hrOp [line] => 10 [function] => include ) [2] => Array ( [file] => /in/0hrOp [line] => 14 [function] => y [class] => x [type] => :: [args] => Array ( ) ) ) Array ( [0] => Array ( [file] => /in/0hrOp [line] => 10 [function] => {closure} [args] => Array ( [0] => 2 [1] => include(): Failed opening '/tmp/asdf.php' for inclusion (include_path='.:') [2] => /in/0hrOp [3] => 10 [4] => Array ( ) ) ) [1] => Array ( [file] => /in/0hrOp [line] => 10 [function] => include ) [2] => Array ( [file] => /in/0hrOp [line] => 14 [function] => y [class] => x [type] => :: [args] => Array ( ) ) )
Output for hhvm-3.22.0
Array ( [0] => Array ( [file] => /in/0hrOp(-1)(93f9826696b34d9734d31b5f6d34fd89) : eval()'d code [line] => -1 [function] => Closure$ [args] => Array ( [0] => 8 [1] => Undefined variable: blaat [2] => /in/0hrOp(-1)(93f9826696b34d9734d31b5f6d34fd89) : eval()'d code [3] => -1 [4] => Array ( ) [5] => Array ( [0] => Array ( [file] => /in/0hrOp(-1)(93f9826696b34d9734d31b5f6d34fd89) : eval()'d code [line] => -1 ) [1] => Array ( [file] => /in/0hrOp [line] => -1 [function] => include [args] => Array ( [0] => /in/0hrOp(-1)(93f9826696b34d9734d31b5f6d34fd89) : eval()'d code ) ) [2] => Array ( [file] => /in/0hrOp [line] => -1 [function] => y [class] => x [type] => :: [args] => Array ( ) ) ) ) ) [1] => Array ( [file] => /in/0hrOp [line] => -1 [function] => include [args] => Array ( [0] => /in/0hrOp(-1)(93f9826696b34d9734d31b5f6d34fd89) : eval()'d code ) ) [2] => Array ( [file] => /in/0hrOp [line] => -1 [function] => y [class] => x [type] => :: [args] => Array ( ) ) ) NULL Array ( [0] => Array ( [file] => /in/0hrOp [line] => -1 [function] => Closure$ [args] => Array ( [0] => 2 [1] => include(/tmp/asdf.php): File not found [2] => /in/0hrOp [3] => -1 [4] => Array ( ) [5] => Array ( [0] => Array ( [file] => /in/0hrOp [line] => -1 ) [1] => Array ( [file] => /in/0hrOp [line] => -1 [function] => y [class] => x [type] => :: [args] => Array ( ) ) ) ) ) [1] => Array ( [file] => /in/0hrOp [line] => -1 [function] => y [class] => x [type] => :: [args] => Array ( ) ) )
Output for hhvm-3.12.14 - 3.15.4, hhvm-3.21.3

Process exited with code 137.
Output for hhvm-3.17.3 - 3.18.4, hhvm-3.19.2 - 3.21.0
Array ( [0] => Array ( [file] => /in/0hrOp(9)(93f9826696b34d9734d31b5f6d34fd89) : eval()'d code [line] => 1 [function] => Closure$ [args] => Array ( [0] => 8 [1] => Undefined variable: blaat [2] => /in/0hrOp(9)(93f9826696b34d9734d31b5f6d34fd89) : eval()'d code [3] => 1 [4] => Array ( ) [5] => Array ( [0] => Array ( [file] => /in/0hrOp(9)(93f9826696b34d9734d31b5f6d34fd89) : eval()'d code [line] => 1 ) [1] => Array ( [file] => /in/0hrOp [line] => 9 [function] => include [args] => Array ( [0] => /in/0hrOp(9)(93f9826696b34d9734d31b5f6d34fd89) : eval()'d code ) ) [2] => Array ( [file] => /in/0hrOp [line] => 14 [function] => y [class] => x [type] => :: [args] => Array ( ) ) ) ) ) [1] => Array ( [file] => /in/0hrOp [line] => 9 [function] => include [args] => Array ( [0] => /in/0hrOp(9)(93f9826696b34d9734d31b5f6d34fd89) : eval()'d code ) ) [2] => Array ( [file] => /in/0hrOp [line] => 14 [function] => y [class] => x [type] => :: [args] => Array ( ) ) ) NULL Array ( [0] => Array ( [file] => /in/0hrOp [line] => 10 [function] => Closure$ [args] => Array ( [0] => 2 [1] => include(/tmp/asdf.php): File not found [2] => /in/0hrOp [3] => 10 [4] => Array ( ) [5] => Array ( [0] => Array ( [file] => /in/0hrOp [line] => 10 ) [1] => Array ( [file] => /in/0hrOp [line] => 14 [function] => y [class] => x [type] => :: [args] => Array ( ) ) ) ) ) [1] => Array ( [file] => /in/0hrOp [line] => 14 [function] => y [class] => x [type] => :: [args] => Array ( ) ) )
Output for hhvm-3.18.5
Array ( [0] => Array ( [file] => /in/0hrOp(9)(93f9826696b34d9734d31b5f6d34fd89) : eval()'d code [line] => 1 [function] => Closure$ [args] => Array ( [0] => 8 [1] => Undefined variable: blaat [2] => /in/0hrOp(9)(93f9826696b34d9734d31b5f6d34fd89) : eval()'d code [3] => 1 [4] => Array ( ) [5] => Array ( [0] => Array ( [file] => /in/0hrOp(9)(93f9826696b34d9734d31b5f6d34fd89) : eval()'d code [line] => 1 ) [1] => Array ( [file] => /in/0hrOp [line] => 9 [function] => include [args] => Array ( [0] => /in/0hrOp(9)(93f9826696b34d9734d31b5f6d34fd89) : eval()'d code ) ) [2] => Array ( [file] => /in/0hrOp [line] => 14 [function] => y [class] => x [type] => :: [args] => Array ( ) ) ) ) ) [1] => Array ( [file] => /in/0hrOp [line] => 9 [function] => include [args] => Array ( [0] => /in/0hrOp(9)(93f9826696b34d9734d31b5f6d34fd89) : eval()'d code ) ) [2] => Array ( [file] => /in/0hrOp [line] => 14 [function] => y [class] => x [type] => :: [args] => Array ( ) ) ) NULL Array ( [0] => Array ( [file] => /in/0hrOp [line] => 10 [function] => Closure$ [args] => Array ( [0] => 2 [1] => include(/tmp/asdf.php): File not found [2] => /in/0hrOp [3] => 10 [4] => Array ( ) [5] => Array ( [0] => Array ( [file] => /in/0hrOp [line] => 10 ) [1] => Array ( [file] => /in/0hrOp [line] => 14 [function] => y [class] => x [type] => :: [args] => Array ( ) ) ) ) ) [1] => Array ( [file] => /in/0hrOp [line] => 14 [function] => y [class] => x [type] => :: [args] => Array ( ) ) )
Process exited with code 137.
Output for hhvm-3.10.1 - 3.11.1
Array ( [0] => Array ( [file] => /in/0hrOp(9)(93f9826696b34d9734d31b5f6d34fd89) : eval()'d code [line] => 1 [function] => Closure$ [args] => Array ( [0] => 8 [1] => Undefined variable: blaat [2] => /in/0hrOp(9)(93f9826696b34d9734d31b5f6d34fd89) : eval()'d code [3] => 1 [4] => Array ( ) [5] => Array ( [0] => Array ( [file] => /in/0hrOp(9)(93f9826696b34d9734d31b5f6d34fd89) : eval()'d code [line] => 1 ) [1] => Array ( [file] => /in/0hrOp [line] => 9 [function] => include [args] => Array ( [0] => /in/0hrOp(9)(93f9826696b34d9734d31b5f6d34fd89) : eval()'d code ) ) [2] => Array ( [file] => /in/0hrOp [line] => 14 [function] => y [class] => x [type] => :: [args] => Array ( ) ) ) ) ) [1] => Array ( [file] => /in/0hrOp [line] => 9 [function] => include [args] => Array ( [0] => /in/0hrOp(9)(93f9826696b34d9734d31b5f6d34fd89) : eval()'d code ) ) [2] => Array ( [file] => /in/0hrOp [line] => 14 [function] => y [class] => x [type] => :: [args] => Array ( ) ) ) NULL Array ( [0] => Array ( [file] => /in/0hrOp [line] => 10 [function] => Closure$ [args] => Array ( [0] => 2 [1] => File not found: /tmp/asdf.php [2] => /in/0hrOp [3] => 10 [4] => Array ( ) [5] => Array ( [0] => Array ( [file] => /in/0hrOp [line] => 10 ) [1] => Array ( [file] => /in/0hrOp [line] => 14 [function] => y [class] => x [type] => :: [args] => Array ( ) ) ) ) ) [1] => Array ( [file] => /in/0hrOp [line] => 14 [function] => y [class] => x [type] => :: [args] => Array ( ) ) )
Output for 5.3.20 - 5.6.38
Array ( [0] => Array ( [file] => /in/0hrOp(9) : eval()'d code [line] => 1 [function] => {closure} [args] => Array ( [0] => 8 [1] => Undefined variable: blaat [2] => /in/0hrOp(9) : eval()'d code [3] => 1 [4] => Array ( ) ) ) [1] => Array ( [file] => /in/0hrOp [line] => 9 [function] => eval ) [2] => Array ( [file] => /in/0hrOp [line] => 14 [function] => y [class] => x [type] => :: [args] => Array ( ) ) ) NULL Array ( [0] => Array ( [file] => /in/0hrOp [line] => 10 [function] => {closure} [args] => Array ( [0] => 2 [1] => include(/tmp/asdf.php): failed to open stream: No such file or directory [2] => /in/0hrOp [3] => 10 [4] => Array ( ) ) ) [1] => Array ( [file] => /in/0hrOp [line] => 10 [function] => y [class] => x [type] => :: ) [2] => Array ( [file] => /in/0hrOp [line] => 14 [function] => y [class] => x [type] => :: [args] => Array ( ) ) ) Array ( [0] => Array ( [file] => /in/0hrOp [line] => 10 [function] => {closure} [args] => Array ( [0] => 2 [1] => include(): Failed opening '/tmp/asdf.php' for inclusion (include_path='.:') [2] => /in/0hrOp [3] => 10 [4] => Array ( ) ) ) [1] => Array ( [file] => /in/0hrOp [line] => 10 [function] => y [class] => x [type] => :: ) [2] => Array ( [file] => /in/0hrOp [line] => 14 [function] => y [class] => x [type] => :: [args] => Array ( ) ) )