3v4l.org

run code in 300+ PHP versions simultaneously
<?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 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Fatal error: Uncaught ValueError: tempnam(): Argument #2 ($prefix) must not contain any null bytes in /in/fpECn:8 Stack trace: #0 /in/fpECn(8): tempnam('/tmp', 'index.php\x00') #1 {main} thrown in /in/fpECn on line 8
Process exited with code 255.
Output for 5.4.41 - 5.4.45, 5.5.25 - 5.5.38, 5.6.9 - 5.6.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.34, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
Warning: tempnam() expects parameter 2 to be a valid path, string given in /in/fpECn on line 8 NULL
Output for 5.6.8
string(20) "/tmp/index.phptRE2DA"
Output for 5.6.7
string(20) "/tmp/index.php9eaWxJ"
Output for 5.6.6
string(20) "/tmp/index.phpT6MV4V"
Output for 5.6.5
string(20) "/tmp/index.phpng7Yt1"
Output for 5.6.4
string(20) "/tmp/index.phpPprSEa"
Output for 5.6.3
string(20) "/tmp/index.phpxIosuj"
Output for 5.6.2
string(20) "/tmp/index.phpA0erns"
Output for 5.6.1
string(20) "/tmp/index.phpXp11eA"
Output for 5.6.0
string(20) "/tmp/index.phpuClxPK"
Output for 5.5.24
string(20) "/tmp/index.php53XLtF"
Output for 5.5.23
string(20) "/tmp/index.phpgNLzkM"
Output for 5.5.22
string(20) "/tmp/index.phpFWPNRT"
Output for 5.5.21
string(20) "/tmp/index.phpe59NK3"
Output for 5.5.20
string(20) "/tmp/index.php6mRsZd"
Output for 5.5.19
string(20) "/tmp/index.phplksU5m"
Output for 5.5.18
string(20) "/tmp/index.phpPKFc3w"
Output for 5.5.17
string(20) "/tmp/index.phpnTyA5G"
Output for 5.5.16
string(20) "/tmp/index.phpDdCsaS"
Output for 5.5.15
string(20) "/tmp/index.phpog0auY"
Output for 5.5.14
string(20) "/tmp/index.phpYJwiY7"
Output for 5.5.13
string(20) "/tmp/index.phpGwSZti"
Output for 5.5.12
string(20) "/tmp/index.php7B3JBp"
Output for 5.5.11
string(20) "/tmp/index.phpIqHcaw"
Output for 5.5.10
string(20) "/tmp/index.phpYfDVcF"
Output for 5.5.9
string(20) "/tmp/index.phpxN80HQ"
Output for 5.5.8
string(20) "/tmp/index.phpviArwX"
Output for 5.5.7
string(20) "/tmp/index.phpZagUT8"
Output for 5.5.6
string(20) "/tmp/index.phpgDdeCh"
Output for 5.5.5
string(20) "/tmp/index.phpuoliXp"
Output for 5.5.4
string(20) "/tmp/index.phph7dZEz"
Output for 5.5.3
string(20) "/tmp/index.phpFQW88I"
Output for 5.5.2
string(20) "/tmp/index.php00rcNU"
Output for 5.5.1
string(20) "/tmp/index.phpDiCjQ1"
Output for 5.5.0
string(20) "/tmp/index.phpkBvxUd"
Output for 5.4.40
string(20) "/tmp/index.phpPEIGKV"
Output for 5.4.39
string(20) "/tmp/index.phpqUcuT5"
Output for 5.4.38
string(20) "/tmp/index.php6mQho8"
Output for 5.4.37
string(20) "/tmp/index.phpJm5jJh"
Output for 5.4.36
string(20) "/tmp/index.php2D9Fnu"
Output for 5.4.35
string(20) "/tmp/index.phpOM1JxE"
Output for 5.4.34
string(20) "/tmp/index.phpQuoszI"
Output for 5.4.33
string(20) "/tmp/index.php5V3v3P"
Output for 5.4.32
string(20) "/tmp/index.phpgb3bZ0"
Output for 5.4.31
string(20) "/tmp/index.phpXkMBO9"
Output for 5.4.30
string(20) "/tmp/index.phpSOEoOg"
Output for 5.4.29
string(20) "/tmp/index.phpwfCL2n"
Output for 5.4.28
string(20) "/tmp/index.phpCbxD7w"
Output for 5.4.27
string(20) "/tmp/index.phpwTFclF"
Output for 5.4.26
string(20) "/tmp/index.phpM5yjYO"
Output for 5.4.25
string(20) "/tmp/index.phpH1TWUW"
Output for 5.4.24
string(20) "/tmp/index.phpKXxfY1"
Output for 5.4.23
string(20) "/tmp/index.phpIeEEHc"
Output for 5.4.22
string(20) "/tmp/index.phpBoIdao"
Output for 5.4.21
string(20) "/tmp/index.phpO6yB1w"
Output for 5.4.20
string(20) "/tmp/index.phpCH0zkH"
Output for 5.4.19
string(20) "/tmp/index.phpyHfAQM"
Output for 5.4.18
string(20) "/tmp/index.phpX5VVBZ"
Output for 5.4.17
string(20) "/tmp/index.phpt819m2"
Output for 5.4.16
string(20) "/tmp/index.phpBmD71a"
Output for 5.4.15
string(20) "/tmp/index.php4TQdjm"
Output for 5.4.14
string(20) "/tmp/index.php17VBVw"
Output for 5.4.13
string(20) "/tmp/index.php2jyPQD"
Output for 5.4.12
string(20) "/tmp/index.phpXoEwbH"
Output for 5.4.11
string(20) "/tmp/index.phpUigmWQ"
Output for 5.4.10
string(20) "/tmp/index.phpol8Ku0"
Output for 5.4.9
string(20) "/tmp/index.phpAwMosa"
Output for 5.4.8
string(20) "/tmp/index.php3lqxAi"
Output for 5.4.7
string(20) "/tmp/index.phpuMIB0n"
Output for 5.4.6
string(20) "/tmp/index.phpA6Yvyy"
Output for 5.4.5
string(20) "/tmp/index.phpBBc4BJ"
Output for 5.4.4
string(20) "/tmp/index.phpDLzr2P"
Output for 5.4.3
string(20) "/tmp/index.phpqrSdVW"
Output for 5.4.2
string(20) "/tmp/index.phpEPJ8c5"
Output for 5.4.1
string(20) "/tmp/index.phpItoCbf"
Output for 5.4.0
string(20) "/tmp/index.phpYtmj8o"
Output for 5.3.4 - 5.3.29
bool(false)
Output for 5.3.3
string(20) "/tmp/index.phpad0Kmx"
Output for 5.3.2
string(20) "/tmp/index.phpeQiF2D"
Output for 5.3.1
string(20) "/tmp/index.phpkXFr3M"
Output for 5.3.0
string(20) "/tmp/index.phpq8vDeV"
Output for 5.2.17
string(20) "/tmp/index.phpocA5U6"
Output for 5.2.16
string(20) "/tmp/index.phpCexOch"
Output for 5.2.15
string(20) "/tmp/index.phpeARQEl"
Output for 5.2.14
string(20) "/tmp/index.phpT40wKr"
Output for 5.2.13
string(20) "/tmp/index.php2aoUYB"
Output for 5.2.12
string(20) "/tmp/index.php02I6KN"
Output for 5.2.11
string(20) "/tmp/index.phpvY888Q"
Output for 5.2.10
string(20) "/tmp/index.phpAQpijY"
Output for 5.2.9
string(20) "/tmp/index.phpc3oeea"
Output for 5.2.8
string(20) "/tmp/index.php30POej"
Output for 5.2.7
string(20) "/tmp/index.php11Ctlo"
Output for 5.2.6
string(20) "/tmp/index.phpjZfKCu"
Output for 5.2.5
string(20) "/tmp/index.phpEARO7D"
Output for 5.2.4
string(20) "/tmp/index.phpv3KUwP"
Output for 5.2.3
string(20) "/tmp/index.phpS53D0S"
Output for 5.2.2
string(20) "/tmp/index.phpHE30F1"
Output for 5.2.1
string(20) "/tmp/index.phpSNcOQd"
Output for 5.2.0
string(20) "/tmp/index.php9Z8Jyo"
Output for 5.1.6
string(20) "/tmp/index.phpEyVLAJ"
Output for 5.1.5
string(20) "/tmp/index.phpRmxPUQ"
Output for 5.1.4
string(20) "/tmp/index.phpc6BA6Z"
Output for 5.1.3
string(20) "/tmp/index.phpAymxa9"
Output for 5.1.2
string(20) "/tmp/index.phpNjB9qe"
Output for 5.1.1
string(20) "/tmp/index.phpGTbSnp"
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/fpECn on line 9
Process exited with code 255.
Output for 5.0.5
string(20) "/tmp/index.phpC6VLNA"
Output for 5.0.4
string(20) "/tmp/index.php7wqKHN"
Output for 5.0.3
string(20) "/tmp/index.phpQmTmHX"
Output for 5.0.2
string(20) "/tmp/index.phpczVVp4"
Output for 5.0.1
string(20) "/tmp/index.php0DP72b"
Output for 5.0.0
string(20) "/tmp/index.phpjyDo7g"
Output for 4.4.9
string(20) "/tmp/index.phpxVTxYt"
Output for 4.4.8
string(20) "/tmp/index.phptMikIy"
Output for 4.4.7
string(20) "/tmp/index.phpqCRQ1H"
Output for 4.4.6
string(20) "/tmp/index.phpRlknoV"
Output for 4.4.5
string(20) "/tmp/index.phptQag9Z"
Output for 4.4.4
string(20) "/tmp/index.phpYwzvO7"
Output for 4.4.3
string(20) "/tmp/index.php3L6w5f"
Output for 4.4.2
string(20) "/tmp/index.phpqUJHwj"
Output for 4.4.1
string(20) "/tmp/index.phpe1edCw"
Output for 4.4.0
string(20) "/tmp/index.php9zEfXB"
Output for 4.3.11
string(20) "/tmp/index.phpSmWT0s"
Output for 4.3.10
string(20) "/tmp/index.phpo4WR6w"
Output for 4.3.9
string(20) "/tmp/index.php1vIklF"
Output for 4.3.8
string(20) "/tmp/index.phph8uU9M"
Output for 4.3.7
string(20) "/tmp/index.phpkEOPpT"
Output for 4.3.6
string(20) "/tmp/index.phpn6U1iZ"
Output for 4.3.5
string(20) "/tmp/index.phpeMgLf8"
Output for 4.3.4
string(20) "/tmp/index.phpRPUQKf"
Output for 4.3.3
string(20) "/tmp/index.phpMpHjin"
Output for 4.3.2
string(20) "/tmp/index.phpxdxUYu"
Output for 4.3.1
string(20) "/tmp/index.phpj7TTLz"
Output for 4.3.0
string(20) "/tmp/index.phpN5evcM"

preferences:
351.21 ms | 401 KiB | 468 Q