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")); //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/fpECn on line 8 NULL
Output for 5.3.4 - 5.3.29, hhvm-3.10.0 - 3.12.0
bool(false)
Output for 5.6.8
string(20) "/tmp/index.phpNMz3WR"
Output for 5.6.7
string(20) "/tmp/index.phpDDZhMa"
Output for 5.6.6
string(20) "/tmp/index.phpyYtA24"
Output for 5.6.5
string(20) "/tmp/index.phpwrWCvO"
Output for 5.6.4
string(20) "/tmp/index.phpkSdWNs"
Output for 5.6.3
string(20) "/tmp/index.php4vEQSF"
Output for 5.6.2
string(20) "/tmp/index.phpRBuE7r"
Output for 5.6.1
string(20) "/tmp/index.phpppn0JG"
Output for 5.6.0
string(20) "/tmp/index.phpkJtsUW"
Output for 5.5.24
string(20) "/tmp/index.phpU61rD0"
Output for 5.5.23
string(20) "/tmp/index.phptS91Qw"
Output for 5.5.22
string(20) "/tmp/index.php4ei6Mi"
Output for 5.5.21
string(20) "/tmp/index.phpM6H1Qn"
Output for 5.5.20
string(20) "/tmp/index.phptWAPgd"
Output for 5.5.19
string(20) "/tmp/index.phpIU8QnV"
Output for 5.5.18
string(20) "/tmp/index.phpCdsrO8"
Output for 5.5.16
string(20) "/tmp/index.phpIIVT17"
Output for 5.5.15
string(20) "/tmp/index.phpMbMSqH"
Output for 5.5.14
string(20) "/tmp/index.phpcGHaFV"
Output for 5.5.13
string(20) "/tmp/index.phpOMUBJD"
Output for 5.5.12
string(20) "/tmp/index.phpn2t87R"
Output for 5.5.11
string(20) "/tmp/index.phpjZw9rg"
Output for 5.5.10
string(20) "/tmp/index.php3HW8fH"
Output for 5.5.9
string(20) "/tmp/index.phpZ3IChU"
Output for 5.5.8
string(20) "/tmp/index.phpiXz3g8"
Output for 5.5.7
string(20) "/tmp/index.phpc2QtVP"
Output for 5.5.6
string(20) "/tmp/index.phpx5QRb4"
Output for 5.5.5
string(20) "/tmp/index.phpVDcyTI"
Output for 5.5.4
string(20) "/tmp/index.phpUjJfhY"
Output for 5.5.3
string(20) "/tmp/index.phpCoit5p"
Output for 5.5.2
string(20) "/tmp/index.phpjgpBmE"
Output for 5.5.1
string(20) "/tmp/index.phpnOyORY"
Output for 5.5.0
string(20) "/tmp/index.phpllewGB"
Output for 5.4.40
string(20) "/tmp/index.phpI6khLB"
Output for 5.4.39
string(20) "/tmp/index.php9AjDvk"
Output for 5.4.38
string(20) "/tmp/index.php4OmNPM"
Output for 5.4.37
string(20) "/tmp/index.phpeG6OVA"
Output for 5.4.36
string(20) "/tmp/index.phpgVPGJ3"
Output for 5.4.35
string(20) "/tmp/index.phppgNCCw"
Output for 5.4.34
string(20) "/tmp/index.phpnFj0pn"
Output for 5.4.32
string(20) "/tmp/index.phpKKEagn"
Output for 5.4.31
string(20) "/tmp/index.phpWGEDGy"
Output for 5.4.30
string(20) "/tmp/index.phph43kcd"
Output for 5.4.29
string(20) "/tmp/index.phpBch5Rq"
Output for 5.4.28
string(20) "/tmp/index.phpUDPOzD"
Output for 5.4.27
string(20) "/tmp/index.phpK26rR0"
Output for 5.4.26
string(20) "/tmp/index.phpLSZS3r"
Output for 5.4.25
string(20) "/tmp/index.phpjQbV4H"
Output for 5.4.24
string(20) "/tmp/index.phpELlBnn"
Output for 5.4.23
string(20) "/tmp/index.php3IkKSz"
Output for 5.4.22
string(20) "/tmp/index.phpnqQbXh"
Output for 5.4.21
string(20) "/tmp/index.phpOSdxDx"
Output for 5.4.20
string(20) "/tmp/index.php5Rxf0M"
Output for 5.4.19
string(20) "/tmp/index.phpIb3Uth"
Output for 5.4.18
string(20) "/tmp/index.phpyMuR7T"
Output for 5.4.17
string(20) "/tmp/index.php3urpWl"
Output for 5.4.16
string(20) "/tmp/index.php9ADF4M"
Output for 5.4.15
string(20) "/tmp/index.phpbgbQzg"
Output for 5.4.14
string(20) "/tmp/index.php9Zt9Jr"
Output for 5.4.13
string(20) "/tmp/index.phppZkOrQ"
Output for 5.4.12
string(20) "/tmp/index.phptDJZy8"
Output for 5.4.11
string(20) "/tmp/index.phpaxVSoI"
Output for 5.4.10
string(20) "/tmp/index.phpPav2J7"
Output for 5.4.9
string(20) "/tmp/index.phpNfn7W7"
Output for 5.4.8
string(20) "/tmp/index.phpHKyq2B"
Output for 5.4.7
string(20) "/tmp/index.phpDpWPB0"
Output for 5.4.6
string(20) "/tmp/index.phpzRyOg5"
Output for 5.4.5
string(20) "/tmp/index.phpYfZ2hB"
Output for 5.4.4
string(20) "/tmp/index.php6essVW"
Output for 5.4.3
string(20) "/tmp/index.phpTS718b"
Output for 5.4.2
string(20) "/tmp/index.phphHHpbA"
Output for 5.4.1
string(20) "/tmp/index.php03R8WS"
Output for 5.4.0
string(20) "/tmp/index.phpkV7wN4"
Output for 5.3.3
string(20) "/tmp/index.phpofKFtR"
Output for 5.3.2
string(20) "/tmp/index.phpe4OYog"
Output for 5.3.1
string(20) "/tmp/index.phpjdaieJ"
Output for 5.3.0
string(20) "/tmp/index.phpMVYlb7"
Output for 5.2.17
string(20) "/tmp/index.php7K29jc"
Output for 5.2.16
string(20) "/tmp/index.phpvapHAc"
Output for 5.2.15
string(20) "/tmp/index.phpOg06ZC"
Output for 5.2.14
string(20) "/tmp/index.phpJwnKc0"
Output for 5.2.13
string(20) "/tmp/index.phpRgtwgg"
Output for 5.2.12
string(20) "/tmp/index.phpz6vyes"
Output for 5.2.11
string(20) "/tmp/index.phpP8PJtV"
Output for 5.2.10
string(20) "/tmp/index.phpVcXwjg"
Output for 5.2.9
string(20) "/tmp/index.phpA7tn8r"
Output for 5.2.8
string(20) "/tmp/index.phpBwTD4v"
Output for 5.2.7
string(20) "/tmp/index.phpNaPoBK"
Output for 5.2.6
string(20) "/tmp/index.phpPe43oa"
Output for 5.2.5
string(20) "/tmp/index.phprCWUYw"
Output for 5.2.4
string(20) "/tmp/index.php94l2mv"
Output for 5.2.3
string(20) "/tmp/index.phpc5l1pJ"
Output for 5.2.2
string(20) "/tmp/index.phpLg049V"
Output for 5.2.1
string(20) "/tmp/index.phpwhMEdu"
Output for 5.2.0
string(20) "/tmp/index.phpYhmCAG"
Output for 5.1.6
string(20) "/tmp/index.php9f8PiS"
Output for 5.1.5
string(20) "/tmp/index.phpMYAvDl"
Output for 5.1.4
string(20) "/tmp/index.phpbF7g0y"
Output for 5.1.3
string(20) "/tmp/index.phpTEOkjK"
Output for 5.1.2
string(20) "/tmp/index.phpD4TQ4X"
Output for 5.1.1
string(20) "/tmp/index.phpBh8n2k"
Output for 5.1.0
<br /> <b>Fatal error</b>: fatal flex scanner internal error--end of buffer missed in <b>/in/fpECn</b> on line <b>9</b><br />
Process exited with code 255.
Output for 5.0.5
string(20) "/tmp/index.phpywxVOF"
Output for 5.0.4
string(20) "/tmp/index.phpCU3vb8"
Output for 5.0.3
string(20) "/tmp/index.phpn2LZuu"
Output for 5.0.2
string(20) "/tmp/index.phpHkVi9F"
Output for 5.0.1
string(20) "/tmp/index.phpk5KWxZ"
Output for 5.0.0
string(20) "/tmp/index.php0f36A8"
Output for 4.4.9
string(20) "/tmp/index.phpdhvatV"
Output for 4.4.8
string(20) "/tmp/index.phpvYLtYk"
Output for 4.4.7
string(20) "/tmp/index.phpjGDkp6"
Output for 4.4.6
string(20) "/tmp/index.php42aHTf"
Output for 4.4.5
string(20) "/tmp/index.phpzIQSIs"
Output for 4.4.4
string(20) "/tmp/index.phpkOQrr5"
Output for 4.4.3
string(20) "/tmp/index.phpa7ClXw"
Output for 4.4.2
string(20) "/tmp/index.phpQ0Uvw8"
Output for 4.4.1
string(20) "/tmp/index.phpxZtzyH"
Output for 4.4.0
string(20) "/tmp/index.phpOaEZbQ"
Output for 4.3.11
string(20) "/tmp/index.phpgnMt2h"
Output for 4.3.10
string(20) "/tmp/index.php1S7oOC"
Output for 4.3.9
string(20) "/tmp/index.phpmpo4CP"
Output for 4.3.8
string(20) "/tmp/index.phpXHCznm"
Output for 4.3.7
string(20) "/tmp/index.php2Y3PMw"
Output for 4.3.6
string(20) "/tmp/index.phpvTKAGH"
Output for 4.3.5
string(20) "/tmp/index.php9KoX8I"
Output for 4.3.4
string(20) "/tmp/index.phpgP03mS"
Output for 4.3.3
string(20) "/tmp/index.php0SxC81"
Output for 4.3.2
string(20) "/tmp/index.phpPDUv6e"
Output for 4.3.1
string(20) "/tmp/index.phpCOMGqp"
Output for 4.3.0
string(20) "/tmp/index.phps1k2Ax"