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", "FOOa\0/\0")); //var_dump(basename("../"));
Output for 5.4.41 - 5.4.45, 5.5.25 - 5.5.38, 5.6.9 - 7.1.0
Warning: tempnam() expects parameter 2 to be a valid path, string given in /in/C97Ak on line 8 NULL
Output for 5.6.8
string(11) "/tmp/CtTTJE"
Output for 5.6.7
string(11) "/tmp/bVES15"
Output for 5.6.6
string(11) "/tmp/6Uwwsz"
Output for 5.6.5
string(11) "/tmp/aCWKGb"
Output for 5.6.4
string(11) "/tmp/XTpo2G"
Output for 5.6.3
string(11) "/tmp/6yheYY"
Output for 5.6.2
string(11) "/tmp/fIKaFo"
Output for 5.6.1
string(11) "/tmp/gTdRUB"
Output for 5.6.0
string(11) "/tmp/AF1fbM"
Output for 5.5.24
string(11) "/tmp/5X6tOS"
Output for 5.5.23
string(11) "/tmp/BjJOnq"
Output for 5.5.22
string(11) "/tmp/7mX3MS"
Output for 5.5.21
string(11) "/tmp/CcQwy3"
Output for 5.5.20
string(11) "/tmp/24ZOiv"
Output for 5.5.19
string(11) "/tmp/QcbWy5"
Output for 5.5.18
string(11) "/tmp/Fl3Bad"
Output for 5.5.16
string(11) "/tmp/ivzUiS"
Output for 5.5.15
string(11) "/tmp/6iZA8g"
Output for 5.5.14
string(11) "/tmp/Pb79qt"
Output for 5.5.13
string(11) "/tmp/ROxn4i"
Output for 5.5.12
string(11) "/tmp/s3cgJo"
Output for 5.5.11
string(11) "/tmp/Q40cjG"
Output for 5.5.10
string(11) "/tmp/xLCxUU"
Output for 5.5.9
string(11) "/tmp/GFmzZc"
Output for 5.5.8
string(11) "/tmp/KFr4si"
Output for 5.5.7
string(11) "/tmp/a5ELNB"
Output for 5.5.6
string(11) "/tmp/AWKXBR"
Output for 5.5.5
string(11) "/tmp/hPN736"
Output for 5.5.4
string(11) "/tmp/DIysKk"
Output for 5.5.3
string(11) "/tmp/FkQHAB"
Output for 5.5.2
string(11) "/tmp/Y5gueJ"
Output for 5.5.1
string(11) "/tmp/R5SqVY"
Output for 5.5.0
string(11) "/tmp/4zoh1o"
Output for 5.4.40
string(11) "/tmp/CtEjo4"
Output for 5.4.39
string(11) "/tmp/z0PbAg"
Output for 5.4.38
string(11) "/tmp/qzj01J"
Output for 5.4.37
string(11) "/tmp/8yic5c"
Output for 5.4.36
string(11) "/tmp/hsgBxk"
Output for 5.4.35
string(11) "/tmp/2WsXbO"
Output for 5.4.34
string(11) "/tmp/5oEWae"
Output for 5.4.32
string(11) "/tmp/jT1q92"
Output for 5.4.31
string(11) "/tmp/PrUdii"
Output for 5.4.30
string(11) "/tmp/U0jHRH"
Output for 5.4.29
string(11) "/tmp/5CDMvQ"
Output for 5.4.28
string(11) "/tmp/Dk7hDi"
Output for 5.4.27
string(11) "/tmp/Rhu8hz"
Output for 5.4.26
string(11) "/tmp/HfO0OM"
Output for 5.4.25
string(11) "/tmp/IzlKJ5"
Output for 5.4.24
string(11) "/tmp/xY9oDk"
Output for 5.4.23
string(11) "/tmp/m6YFgv"
Output for 5.4.22
string(11) "/tmp/ypkcBZ"
Output for 5.4.21
string(11) "/tmp/b9iqDc"
Output for 5.4.20
string(11) "/tmp/kHbREr"
Output for 5.4.19
string(11) "/tmp/YZkD9q"
Output for 5.4.18
string(11) "/tmp/Z9lvFP"
Output for 5.4.17
string(11) "/tmp/Um7Nsh"
Output for 5.4.16
string(11) "/tmp/EtCPtu"
Output for 5.4.15
string(11) "/tmp/vaMvOQ"
Output for 5.4.14
string(11) "/tmp/l6GiU6"
Output for 5.4.13
string(11) "/tmp/s2A7Zh"
Output for 5.4.12
string(11) "/tmp/EsUXMz"
Output for 5.4.11
string(11) "/tmp/DhozBJ"
Output for 5.4.10
string(11) "/tmp/PZUfH4"
Output for 5.4.9
string(11) "/tmp/hoH6Hc"
Output for 5.4.8
string(11) "/tmp/s6tLED"
Output for 5.4.7
string(11) "/tmp/f9ix5I"
Output for 5.4.6
string(11) "/tmp/8dRB8T"
Output for 5.4.5
string(11) "/tmp/LEXCii"
Output for 5.4.4
string(11) "/tmp/LLfnsx"
Output for 5.4.3
string(11) "/tmp/f2O9rF"
Output for 5.4.2
string(11) "/tmp/CM73Y0"
Output for 5.4.1
string(11) "/tmp/Ikdprk"
Output for 5.4.0
string(11) "/tmp/sqelqu"
Output for 5.3.4 - 5.3.29
bool(false)
Output for 5.3.3
string(11) "/tmp/xNw1GP"
Output for 5.3.2
string(11) "/tmp/q8JzL8"
Output for 5.3.1
string(11) "/tmp/OscpQz"
Output for 5.3.0
string(11) "/tmp/yxVdEQ"
Output for 5.2.17
string(11) "/tmp/YMeSNk"
Output for 5.2.16
string(11) "/tmp/jH18Wu"
Output for 5.2.15
string(11) "/tmp/N1TvVK"
Output for 5.2.14
string(11) "/tmp/dnZ8vZ"
Output for 5.2.13
string(11) "/tmp/2Eqh1f"
Output for 5.2.12
string(11) "/tmp/Z0kGfr"
Output for 5.2.11
string(11) "/tmp/RvzKpK"
Output for 5.2.10
string(11) "/tmp/HBUDzX"
Output for 5.2.9
string(11) "/tmp/2N2mG8"
Output for 5.2.8
string(11) "/tmp/ebmuEh"
Output for 5.2.7
string(11) "/tmp/v1GSMn"
Output for 5.2.6
string(11) "/tmp/a62tNL"
Output for 5.2.5
string(11) "/tmp/hr3xgR"
Output for 5.2.4
string(11) "/tmp/G35AO0"
Output for 5.2.3
string(11) "/tmp/EbGCCb"
Output for 5.2.2
string(11) "/tmp/O6nuFh"
Output for 5.2.1
string(11) "/tmp/tuc8JR"
Output for 5.2.0
string(11) "/tmp/fSwe00"
Output for 5.1.6
string(11) "/tmp/8txaJZ"
Output for 5.1.5
string(11) "/tmp/lryhGg"
Output for 5.1.4
string(11) "/tmp/9SPh6v"
Output for 5.1.3
string(11) "/tmp/aW95mC"
Output for 5.1.2
string(15) "/tmp/FOOaJHTPGM"
Output for 5.1.1
string(15) "/tmp/FOOayTYF50"
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/C97Ak on line 9
Process exited with code 255.
Output for 5.0.5
string(15) "/tmp/FOOa2rMZwd"
Output for 5.0.4
string(15) "/tmp/FOOavZLBZu"
Output for 5.0.3
string(15) "/tmp/FOOaaPvv4M"
Output for 5.0.2
string(15) "/tmp/FOOajbX8IZ"
Output for 5.0.1
string(15) "/tmp/FOOaz4UUi4"
Output for 5.0.0
string(15) "/tmp/FOOaaHKAFe"
Output for 4.4.9
string(15) "/tmp/FOOasfsG3v"
Output for 4.4.8
string(15) "/tmp/FOOaAqGVHR"
Output for 4.4.7
string(15) "/tmp/FOOajfkzbp"
Output for 4.4.6
string(15) "/tmp/FOOaURXVVw"
Output for 4.4.5
string(15) "/tmp/FOOaFeBVgI"
Output for 4.4.4
string(15) "/tmp/FOOaFhBl58"
Output for 4.4.3
string(15) "/tmp/FOOarVj3Wo"
Output for 4.4.2
string(15) "/tmp/FOOagDqGHT"
Output for 4.4.1
string(15) "/tmp/FOOalFr4i5"
Output for 4.4.0
string(15) "/tmp/FOOa7qulUk"
Output for 4.3.11
string(15) "/tmp/FOOa22fX1C"
Output for 4.3.10
string(15) "/tmp/FOOaDUj6WS"
Output for 4.3.9
string(15) "/tmp/FOOa9xfxA8"
Output for 4.3.8
string(15) "/tmp/FOOahov6Sn"
Output for 4.3.7
string(15) "/tmp/FOOaR1yqjv"
Output for 4.3.6
string(15) "/tmp/FOOaNxxw9D"
Output for 4.3.5
string(15) "/tmp/FOOauNAtpL"
Output for 4.3.4
string(15) "/tmp/FOOasbT16R"
Output for 4.3.3
string(15) "/tmp/FOOa45deyY"
Output for 4.3.2
string(15) "/tmp/FOOaNuK3hc"
Output for 4.3.1
string(15) "/tmp/FOOazyEGl7"
Output for 4.3.0
string(15) "/tmp/FOOan2YsTe"