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/\0a")); //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/kTJJV on line 8 NULL
Output for 4.3.0 - 4.4.2, 5.0.0 - 5.0.5, 5.1.1 - 5.1.2, 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(11) "/tmp/nMvruR"
Output for 5.5.24
string(11) "/tmp/n0zZ97"
Output for 5.4.40
string(11) "/tmp/dnFpbh"
Output for 5.4.39
string(11) "/tmp/b8FTAX"
Output for 5.4.38
string(11) "/tmp/8vTLBI"
Output for 5.4.37
string(11) "/tmp/8wrURn"
Output for 5.4.36
string(11) "/tmp/Vbgm0Z"
Output for 5.4.35
string(11) "/tmp/NSM4Pw"
Output for 5.4.34
string(11) "/tmp/Vak5gg"
Output for 5.4.32
string(11) "/tmp/iwEAFq"
Output for 5.4.31
string(11) "/tmp/rUeYGI"
Output for 5.4.30
string(11) "/tmp/lIomtL"
Output for 5.4.29
string(11) "/tmp/VJDF2A"
Output for 5.4.28
string(11) "/tmp/eqaNvf"
Output for 5.4.27
string(11) "/tmp/gJ8yie"
Output for 5.4.26
string(11) "/tmp/3kzoHz"
Output for 5.4.25
string(11) "/tmp/mRlXZF"
Output for 5.4.24
string(11) "/tmp/ttAvmH"
Output for 5.4.23
string(11) "/tmp/UrfUCB"
Output for 5.4.22
string(11) "/tmp/3coPjE"
Output for 5.4.21
string(11) "/tmp/H84MSK"
Output for 5.4.20
string(11) "/tmp/IqXYZO"
Output for 5.4.19
string(11) "/tmp/ZssN2P"
Output for 5.4.18
string(11) "/tmp/qlSM3V"
Output for 5.4.17
string(11) "/tmp/Rvo5xX"
Output for 5.4.16
string(11) "/tmp/pw8wz4"
Output for 5.4.15
string(11) "/tmp/J6OXv5"
Output for 5.4.14
string(11) "/tmp/2yUuFb"
Output for 5.4.13
string(11) "/tmp/mUJvUc"
Output for 5.4.12
string(11) "/tmp/PxvESi"
Output for 5.4.11
string(11) "/tmp/wYGaDk"
Output for 5.4.10
string(11) "/tmp/xj52Ap"
Output for 5.4.9
string(11) "/tmp/pL8BYr"
Output for 5.4.8
string(11) "/tmp/apCi8x"
Output for 5.4.7
string(11) "/tmp/AdWTwy"
Output for 5.4.6
string(11) "/tmp/PgglrE"
Output for 5.4.5
string(11) "/tmp/mXLvGH"
Output for 5.4.4
string(11) "/tmp/9JBwYI"
Output for 5.4.3
string(11) "/tmp/g4fTBC"
Output for 5.4.2
string(11) "/tmp/AuShuI"
Output for 5.4.1
string(11) "/tmp/QtUwjK"
Output for 5.4.0
string(11) "/tmp/9ce1GQ"
Output for 5.3.3
string(11) "/tmp/HNoNMb"
Output for 5.3.2
string(11) "/tmp/xS3Wfc"
Output for 5.3.1
string(11) "/tmp/tl8Cki"
Output for 5.3.0
string(11) "/tmp/TWUMel"
Output for 5.2.17
string(11) "/tmp/52Isom"
Output for 5.2.16
string(11) "/tmp/XPRJcp"
Output for 5.2.15
string(11) "/tmp/wuFoMu"
Output for 5.2.14
string(11) "/tmp/OiQqpx"
Output for 5.2.13
string(11) "/tmp/0cwt9y"
Output for 5.2.12
string(11) "/tmp/lHjkkB"
Output for 5.2.11
string(11) "/tmp/mNeT1G"
Output for 5.2.10
string(11) "/tmp/Ak8FcJ"
Output for 5.2.9
string(11) "/tmp/CVyRdM"
Output for 5.2.8
string(11) "/tmp/3ibleN"
Output for 5.2.7
string(11) "/tmp/v1ZGUP"
Output for 5.2.6
string(11) "/tmp/rZB1DL"
Output for 5.2.5
string(11) "/tmp/nxz5LN"
Output for 5.2.4
string(11) "/tmp/Q9gAOO"
Output for 5.2.3
string(11) "/tmp/21HJ8Q"
Output for 5.2.2
string(11) "/tmp/NzWwsU"
Output for 5.2.1
string(11) "/tmp/EQuGWW"
Output for 5.2.0
string(11) "/tmp/rukd3Y"
Output for 5.1.6
string(11) "/tmp/kQxsx1"
Output for 5.1.5
string(11) "/tmp/LOxvf7"
Output for 5.1.4
string(11) "/tmp/Y2pZma"
Output for 5.1.3
string(11) "/tmp/PjiaMa"
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/kTJJV on line 9
Process exited with code 255.
Output for 4.4.9
string(11) "/tmp/YgTpGA"
Output for 4.4.8
string(11) "/tmp/EKlWvz"
Output for 4.4.7
string(11) "/tmp/GQfMQB"
Output for 4.4.6
string(11) "/tmp/6ycevG"
Output for 4.4.5
string(11) "/tmp/dwvJRH"
Output for 4.4.4
string(11) "/tmp/AiuJ8K"
Output for 4.4.3
string(11) "/tmp/gg3gLJ"