3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php //$str = "ryat\0".str_repeat('i',1024); //link('/in/01E2M','b'); $str = "/vmlinuz"; //var_dump(readlink($str)); var_dump(tempnam("/tmp", "index.php\0\00")); //var_dump(basename("../"));
Output for 5.4.41 - 5.4.45, 5.5.25 - 5.5.35, 5.6.9 - 5.6.28, 7.0.0 - 7.1.0
Warning: tempnam() expects parameter 2 to be a valid path, string given in /in/HMeRQ on line 8 NULL
Output for 5.3.4 - 5.3.29, hhvm-3.12.0
bool(false)
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.6.8
string(20) "/tmp/index.phpjNdv35"
Output for 5.6.7
string(20) "/tmp/index.phpp8fU0p"
Output for 5.5.24
string(20) "/tmp/index.phpow79zZ"
Output for 5.4.40
string(20) "/tmp/index.phpAEGrVv"
Output for 5.4.39
string(20) "/tmp/index.php0oSw02"
Output for 5.4.38
string(20) "/tmp/index.php4NyI5w"
Output for 5.4.37
string(20) "/tmp/index.phpDsdJEY"
Output for 5.4.36
string(20) "/tmp/index.phplH2CHA"
Output for 5.4.35
string(20) "/tmp/index.php5icSF7"
Output for 5.4.34
string(20) "/tmp/index.phpvZBfYP"
Output for 5.4.32
string(20) "/tmp/index.phpa1dMj6"
Output for 5.4.31
string(20) "/tmp/index.php4XPXjb"
Output for 5.4.30
string(20) "/tmp/index.phpYMzhUP"
Output for 5.4.29
string(20) "/tmp/index.phpqWBDCp"
Output for 5.4.28
string(20) "/tmp/index.phpbkbeG1"
Output for 5.4.27
string(20) "/tmp/index.phpdKKgE7"
Output for 5.4.26
string(20) "/tmp/index.phpt0xIJ3"
Output for 5.4.25
string(20) "/tmp/index.phpm0j4W4"
Output for 5.4.24
string(20) "/tmp/index.phpScF2db"
Output for 5.4.23
string(20) "/tmp/index.phpgvGpld"
Output for 5.4.22
string(20) "/tmp/index.phpjhq2pi"
Output for 5.4.21
string(20) "/tmp/index.phpLszDNk"
Output for 5.4.20
string(20) "/tmp/index.phpd1PYMq"
Output for 5.4.19
string(20) "/tmp/index.php53Fcfr"
Output for 5.4.18
string(20) "/tmp/index.phpmTQIzx"
Output for 5.4.17
string(20) "/tmp/index.phpBYztkA"
Output for 5.4.16
string(20) "/tmp/index.phpyj784B"
Output for 5.4.15
string(20) "/tmp/index.phpXPXb6G"
Output for 5.4.14
string(20) "/tmp/index.phpa4XRPI"
Output for 5.4.13
string(20) "/tmp/index.phpJcXsyL"
Output for 5.4.12
string(20) "/tmp/index.php84ToLR"
Output for 5.4.11
string(20) "/tmp/index.phpQ0kCNS"
Output for 5.4.10
string(20) "/tmp/index.phpWlY0qY"
Output for 5.4.9
string(20) "/tmp/index.php9upSVS"
Output for 5.4.8
string(20) "/tmp/index.phpQtiaIV"
Output for 5.4.7
string(20) "/tmp/index.phpIQpxiX"
Output for 5.4.6
string(20) "/tmp/index.phpCH5hf2"
Output for 5.4.5
string(20) "/tmp/index.php0dN9s5"
Output for 5.4.4
string(20) "/tmp/index.phpL1Sqj6"
Output for 5.4.3
string(20) "/tmp/index.phpjpcDtc"
Output for 5.4.2
string(20) "/tmp/index.phplH03gf"
Output for 5.4.1
string(20) "/tmp/index.phpIsucPg"
Output for 5.4.0
string(20) "/tmp/index.phpQIyPVl"
Output for 5.3.3
string(20) "/tmp/index.phpGUwx6H"
Output for 5.3.2
string(20) "/tmp/index.phpLaxteO"
Output for 5.3.1
string(20) "/tmp/index.phpEnkvbQ"
Output for 5.3.0
string(20) "/tmp/index.phpNe69lW"
Output for 5.2.17
string(20) "/tmp/index.php97uGVW"
Output for 5.2.16
string(20) "/tmp/index.phpBb69t0"
Output for 5.2.15
string(20) "/tmp/index.phpieGIo5"
Output for 5.2.14
string(20) "/tmp/index.php1f4LTW"
Output for 5.2.13
string(20) "/tmp/index.phphDcFQ2"
Output for 5.2.12
string(20) "/tmp/index.phppcPd73"
Output for 5.2.11
string(20) "/tmp/index.phpScfCq9"
Output for 5.2.10
string(20) "/tmp/index.php1E6dyc"
Output for 5.2.9
string(20) "/tmp/index.phpaCgeef"
Output for 5.2.8
string(20) "/tmp/index.phpTAibOf"
Output for 5.2.7
string(20) "/tmp/index.phpYsWQkj"
Output for 5.2.6
string(20) "/tmp/index.phpq575np"
Output for 5.2.5
string(20) "/tmp/index.phpZT3RCp"
Output for 5.2.4
string(20) "/tmp/index.phpZJoJYs"
Output for 5.2.3
string(20) "/tmp/index.php1Zx5hv"
Output for 5.2.2
string(20) "/tmp/index.phphkpxNA"
Output for 5.2.1
string(20) "/tmp/index.phpB944ZD"
Output for 5.2.0
string(20) "/tmp/index.phpRmPF8F"
Output for 5.1.6
string(20) "/tmp/index.phpQl8KvI"
Output for 5.1.5
string(20) "/tmp/index.phpDX0tzJ"
Output for 5.1.4
string(20) "/tmp/index.phpY5WDDN"
Output for 5.1.3
string(20) "/tmp/index.phpskaqvO"
Output for 5.1.2
string(20) "/tmp/index.phpbVTcCR"
Output for 5.1.1
string(20) "/tmp/index.phpPResZT"
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/HMeRQ on line 9
Process exited with code 255.
Output for 5.0.5
string(20) "/tmp/index.phpquKtOY"
Output for 5.0.4
string(20) "/tmp/index.php742ko4"
Output for 5.0.3
string(20) "/tmp/index.phpP8q4c7"
Output for 5.0.2
string(20) "/tmp/index.phpnkBf38"
Output for 5.0.1
string(20) "/tmp/index.php7zRSw1"
Output for 5.0.0
string(20) "/tmp/index.phpbXSLq2"
Output for 4.4.9
string(20) "/tmp/index.php5wkVD6"
Output for 4.4.8
string(20) "/tmp/index.phpUiNcw8"
Output for 4.4.7
string(20) "/tmp/index.phpRbK0b7"
Output for 4.4.6
string(20) "/tmp/index.phpMCAXBb"
Output for 4.4.5
string(20) "/tmp/index.php8LKKea"
Output for 4.4.4
string(20) "/tmp/index.phpOMDlDc"
Output for 4.4.3
string(20) "/tmp/index.phpBBuCne"
Output for 4.4.2
string(20) "/tmp/index.phpPSGdWi"
Output for 4.4.1
string(20) "/tmp/index.phpOWzGDh"
Output for 4.4.0
string(20) "/tmp/index.phpgTSTtk"
Output for 4.3.11
string(20) "/tmp/index.phpbVYmam"
Output for 4.3.10
string(20) "/tmp/index.phpHlkqxp"
Output for 4.3.9
string(20) "/tmp/index.phpLcI31o"
Output for 4.3.8
string(20) "/tmp/index.phpiuPZAu"
Output for 4.3.7
string(20) "/tmp/index.phpMewFFt"
Output for 4.3.6
string(20) "/tmp/index.phpCB5wlx"
Output for 4.3.5
string(20) "/tmp/index.phpNBM5zz"
Output for 4.3.4
string(20) "/tmp/index.phpS8WSRy"
Output for 4.3.3
string(20) "/tmp/index.phpCAoSKA"
Output for 4.3.2
string(20) "/tmp/index.phptvr14E"
Output for 4.3.1
string(20) "/tmp/index.phpQP15ID"
Output for 4.3.0
string(20) "/tmp/index.phpZlXnb9"