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\\00")); //var_dump(basename("../"));
Output for 7.1.0
string(23) "/tmp/index.php\00Ti8fdP"
Output for 7.0.14
string(23) "/tmp/index.php\00tX86CM"
Output for 7.0.6
string(23) "/tmp/index.php\00i0ku2f"
Output for 7.0.5
string(23) "/tmp/index.php\00FMGUcE"
Output for 7.0.4
string(23) "/tmp/index.php\004JDWgE"
Output for 7.0.3
string(23) "/tmp/index.php\00xxPpN2"
Output for 7.0.2
string(23) "/tmp/index.php\00fV9zF4"
Output for 7.0.1
string(23) "/tmp/index.php\00EraTYo"
Output for 7.0.0
string(23) "/tmp/index.php\00xyfTGp"
Output for hhvm-3.12.0
string(23) "/tmp/index.php\00gilODV"
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.6.28
string(23) "/tmp/index.php\00XlShqj"
Output for 5.6.21
string(23) "/tmp/index.php\00FTknq8"
Output for 5.6.20
string(23) "/tmp/index.php\00ZyEPMl"
Output for 5.6.19
string(23) "/tmp/index.php\009mWapD"
Output for 5.6.18
string(23) "/tmp/index.php\00qUX1pU"
Output for 5.6.17
string(23) "/tmp/index.php\00ZYIre0"
Output for 5.6.16
string(23) "/tmp/index.php\00bJmkeZ"
Output for 5.6.15
string(23) "/tmp/index.php\00Y0TDQQ"
Output for 5.6.14
string(23) "/tmp/index.php\00bTzWUU"
Output for 5.6.13
string(23) "/tmp/index.php\00YpAGhX"
Output for 5.6.12
string(23) "/tmp/index.php\00aApOyZ"
Output for 5.6.11
string(23) "/tmp/index.php\00LFcoNp"
Output for 5.6.10
string(23) "/tmp/index.php\00vIhQII"
Output for 5.6.9
string(23) "/tmp/index.php\002kkkag"
Output for 5.6.8
string(23) "/tmp/index.php\00Do7Czp"
Output for 5.6.7
string(23) "/tmp/index.php\002Vhjet"
Output for 5.5.35
string(23) "/tmp/index.php\00xe0Vcv"
Output for 5.5.34
string(23) "/tmp/index.php\00NiWA2a"
Output for 5.5.33
string(23) "/tmp/index.php\005SaFP3"
Output for 5.5.32
string(23) "/tmp/index.php\00GJIBUZ"
Output for 5.5.31
string(23) "/tmp/index.php\00QfNJCX"
Output for 5.5.30
string(23) "/tmp/index.php\00DDm04t"
Output for 5.5.29
string(23) "/tmp/index.php\00lSayFs"
Output for 5.5.28
string(23) "/tmp/index.php\00vITQ7O"
Output for 5.5.27
string(23) "/tmp/index.php\00dcNHMO"
Output for 5.5.26
string(23) "/tmp/index.php\00v2sgTO"
Output for 5.5.25
string(23) "/tmp/index.php\00SnhqIh"
Output for 5.5.24
string(23) "/tmp/index.php\00NteVAC"
Output for 5.4.45
string(23) "/tmp/index.php\00wkIv8Z"
Output for 5.4.44
string(23) "/tmp/index.php\00ObPwmI"
Output for 5.4.43
string(23) "/tmp/index.php\00g0bC5k"
Output for 5.4.42
string(23) "/tmp/index.php\00bbjZ1W"
Output for 5.4.41
string(23) "/tmp/index.php\00n3twgf"
Output for 5.4.40
string(23) "/tmp/index.php\00hyYYf2"
Output for 5.4.39
string(23) "/tmp/index.php\00Ef1mNH"
Output for 5.4.38
string(23) "/tmp/index.php\00ydqs9X"
Output for 5.4.37
string(23) "/tmp/index.php\00kaKpy8"
Output for 5.4.36
string(23) "/tmp/index.php\00q3OLdU"
Output for 5.4.35
string(23) "/tmp/index.php\00PBFjQr"
Output for 5.4.34
string(23) "/tmp/index.php\00OWd3zd"
Output for 5.4.32
string(23) "/tmp/index.php\00Agw3xW"
Output for 5.4.31
string(23) "/tmp/index.php\00OT7Yme"
Output for 5.4.30
string(23) "/tmp/index.php\00I0pXtf"
Output for 5.4.29
string(23) "/tmp/index.php\00ZmrnxM"
Output for 5.4.28
string(23) "/tmp/index.php\00lJncbl"
Output for 5.4.27
string(23) "/tmp/index.php\00TJq6w3"
Output for 5.4.26
string(23) "/tmp/index.php\007KOvvi"
Output for 5.4.25
string(23) "/tmp/index.php\00E8hVEc"
Output for 5.4.24
string(23) "/tmp/index.php\00T9GpDf"
Output for 5.4.23
string(23) "/tmp/index.php\004IK9Pg"
Output for 5.4.22
string(23) "/tmp/index.php\00Yd8yen"
Output for 5.4.21
string(23) "/tmp/index.php\008zadzn"
Output for 5.4.20
string(23) "/tmp/index.php\00i3R3Xt"
Output for 5.4.19
string(23) "/tmp/index.php\00zZkkTw"
Output for 5.4.18
string(23) "/tmp/index.php\00tjNHry"
Output for 5.4.17
string(23) "/tmp/index.php\00NdN0mD"
Output for 5.4.16
string(23) "/tmp/index.php\00kZLoHG"
Output for 5.4.15
string(23) "/tmp/index.php\007pzIgI"
Output for 5.4.14
string(23) "/tmp/index.php\009NHXvN"
Output for 5.4.13
string(23) "/tmp/index.php\00iFMizO"
Output for 5.4.12
string(23) "/tmp/index.php\00F0SlTR"
Output for 5.4.11
string(23) "/tmp/index.php\00ukGU7X"
Output for 5.4.10
string(23) "/tmp/index.php\00kmVhvY"
Output for 5.4.9
string(23) "/tmp/index.php\00sQ8dV4"
Output for 5.4.8
string(23) "/tmp/index.php\00BCoLC7"
Output for 5.4.7
string(23) "/tmp/index.php\00x1Pic9"
Output for 5.4.6
string(23) "/tmp/index.php\00eGP3Re"
Output for 5.4.5
string(23) "/tmp/index.php\00nW9cFh"
Output for 5.4.4
string(23) "/tmp/index.php\00zCWzZi"
Output for 5.4.3
string(23) "/tmp/index.php\00hEccUo"
Output for 5.4.2
string(23) "/tmp/index.php\00LYU2jj"
Output for 5.4.1
string(23) "/tmp/index.php\00zz5Ivn"
Output for 5.4.0
string(23) "/tmp/index.php\00ZUjeQo"
Output for 5.3.29
string(23) "/tmp/index.php\00yjA1nE"
Output for 5.3.28
string(23) "/tmp/index.php\00JLbHBv"
Output for 5.3.27
string(23) "/tmp/index.php\00D86V7w"
Output for 5.3.26
string(23) "/tmp/index.php\00lHVheD"
Output for 5.3.25
string(23) "/tmp/index.php\00BGvzsE"
Output for 5.3.24
string(23) "/tmp/index.php\003bGOkK"
Output for 5.3.23
string(23) "/tmp/index.php\00r8rVzL"
Output for 5.3.22
string(23) "/tmp/index.php\0080x4tR"
Output for 5.3.21
string(23) "/tmp/index.php\00nUcl2V"
Output for 5.3.20
string(23) "/tmp/index.php\00ykBqrX"
Output for 5.3.19
string(23) "/tmp/index.php\00jUw023"
Output for 5.3.18
string(23) "/tmp/index.php\00sPNfg5"
Output for 5.3.17
string(23) "/tmp/index.php\00PRyeR9"
Output for 5.3.16
string(23) "/tmp/index.php\007QRzrg"
Output for 5.3.15
string(23) "/tmp/index.php\00KoP72g"
Output for 5.3.14
string(23) "/tmp/index.php\00qu9qYm"
Output for 5.3.13
string(23) "/tmp/index.php\009ihpho"
Output for 5.3.12
string(23) "/tmp/index.php\00ZwaIxi"
Output for 5.3.11
string(23) "/tmp/index.php\00tv5Vto"
Output for 5.3.10
string(23) "/tmp/index.php\00A7lt5p"
Output for 5.3.9
string(23) "/tmp/index.php\00Hijs6v"
Output for 5.3.8
string(23) "/tmp/index.php\00cMKiyx"
Output for 5.3.7
string(23) "/tmp/index.php\00A4rosD"
Output for 5.3.6
string(23) "/tmp/index.php\00bb1PHF"
Output for 5.3.5
string(23) "/tmp/index.php\00VRBMJL"
Output for 5.3.4
string(23) "/tmp/index.php\00qUnbZP"
Output for 5.3.3
string(23) "/tmp/index.php\00VKupRQ"
Output for 5.3.2
string(23) "/tmp/index.php\00GdGodU"
Output for 5.3.1
string(23) "/tmp/index.php\00GuG0j0"
Output for 5.3.0
string(23) "/tmp/index.php\00GEoQB1"
Output for 5.2.17
string(23) "/tmp/index.php\00NvpBW3"
Output for 5.2.16
string(23) "/tmp/index.php\00jq1HL9"
Output for 5.2.15
string(23) "/tmp/index.php\00aVm1Gc"
Output for 5.2.14
string(23) "/tmp/index.php\00mVZ4Se"
Output for 5.2.13
string(23) "/tmp/index.php\008FpXUf"
Output for 5.2.12
string(23) "/tmp/index.php\00ARmzDi"
Output for 5.2.11
string(23) "/tmp/index.php\004lFv3n"
Output for 5.2.10
string(23) "/tmp/index.php\00KRZcfr"
Output for 5.2.9
string(23) "/tmp/index.php\00N6nhls"
Output for 5.2.8
string(23) "/tmp/index.php\00itfGXm"
Output for 5.2.7
string(23) "/tmp/index.php\00om5zRs"
Output for 5.2.6
string(23) "/tmp/index.php\00xc18Et"
Output for 5.2.5
string(23) "/tmp/index.php\00Fmgmqz"
Output for 5.2.4
string(23) "/tmp/index.php\00T6kKWC"
Output for 5.2.3
string(23) "/tmp/index.php\00gG7neF"
Output for 5.2.2
string(23) "/tmp/index.php\00JEY19F"
Output for 5.2.1
string(23) "/tmp/index.php\009VOZlI"
Output for 5.2.0
string(23) "/tmp/index.php\00PxubmL"
Output for 5.1.6
string(23) "/tmp/index.php\00XDcqUN"
Output for 5.1.5
string(23) "/tmp/index.php\00zyO6jQ"
Output for 5.1.4
string(23) "/tmp/index.php\00QRxiMS"
Output for 5.1.3
string(23) "/tmp/index.php\00u0kZlY"
Output for 5.1.2
string(23) "/tmp/index.php\00X38YK0"
Output for 5.1.1
string(23) "/tmp/index.php\00JGlze3"
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/IkrS1 on line 9
Process exited with code 255.
Output for 5.0.5
string(23) "/tmp/index.php\00mRsOg8"
Output for 5.0.4
string(23) "/tmp/index.php\00lnLxQ7"
Output for 5.0.3
string(23) "/tmp/index.php\00ALDm59"
Output for 5.0.2
string(23) "/tmp/index.php\00O6HYAc"
Output for 5.0.1
string(23) "/tmp/index.php\00L9KbEe"
Output for 5.0.0
string(23) "/tmp/index.php\00UzDjJg"
Output for 4.4.9
string(23) "/tmp/index.php\00EOW2hl"
Output for 4.4.8
string(23) "/tmp/index.php\00U9sbUj"
Output for 4.4.7
string(23) "/tmp/index.php\00BPTZZl"
Output for 4.4.6
string(23) "/tmp/index.php\00M47cpp"
Output for 4.4.5
string(23) "/tmp/index.php\000F9t9o"
Output for 4.4.4
string(23) "/tmp/index.php\00fqhp5q"
Output for 4.4.3
string(23) "/tmp/index.php\00wt3R1s"
Output for 4.4.2
string(23) "/tmp/index.php\00SbNKbx"
Output for 4.4.1
string(23) "/tmp/index.php\00dwi1pz"
Output for 4.4.0
string(23) "/tmp/index.php\00BkDZRp"
Output for 4.3.11
string(23) "/tmp/index.php\001TZpvs"
Output for 4.3.10
string(23) "/tmp/index.php\00BjQhMw"
Output for 4.3.9
string(23) "/tmp/index.php\00I2uRny"
Output for 4.3.8
string(23) "/tmp/index.php\00zW2PKx"
Output for 4.3.7
string(23) "/tmp/index.php\009Gqf0z"
Output for 4.3.6
string(23) "/tmp/index.php\00zbHs3D"
Output for 4.3.5
string(23) "/tmp/index.php\00AH27EC"
Output for 4.3.4
string(23) "/tmp/index.php\00meKzYE"
Output for 4.3.3
string(23) "/tmp/index.php\00ECqt7G"
Output for 4.3.2
string(23) "/tmp/index.php\00SWKqrK"
Output for 4.3.1
string(23) "/tmp/index.php\00vMhcxJ"
Output for 4.3.0
string(23) "/tmp/index.php\00YfGuo7"