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", "FOOa/\0a")); //var_dump(basename("../"));
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.18, 8.3.0 - 8.3.4, 8.3.6
Fatal error: Uncaught ValueError: tempnam(): Argument #2 ($prefix) must not contain any null bytes in /in/kTJJV:8 Stack trace: #0 /in/kTJJV(8): tempnam('/tmp', 'FOOa/\x00a') #1 {main} thrown in /in/kTJJV on line 8
Process exited with code 255.
Output for 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 Fatal error: Uncaught ValueError: tempnam(): Argument #2 ($prefix) must not contain any null bytes in /in/kTJJV:8 Stack trace: #0 /in/kTJJV(8): tempnam('/tmp', 'FOOa/\x00a') #1 {main} thrown in /in/kTJJV 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/kTJJV on line 8 NULL
Output for 5.6.8
string(11) "/tmp/mJMKRu"
Output for 5.6.7
string(11) "/tmp/cYqUPF"
Output for 5.6.6
string(11) "/tmp/RHif6L"
Output for 5.6.5
string(11) "/tmp/bR30jW"
Output for 5.6.4
string(11) "/tmp/TmENm5"
Output for 5.6.3
string(11) "/tmp/E9xr8d"
Output for 5.6.2
string(11) "/tmp/qes5ip"
Output for 5.6.1
string(11) "/tmp/AaaFVz"
Output for 5.6.0
string(11) "/tmp/Id4GkI"
Output for 5.5.24
string(11) "/tmp/V22CKz"
Output for 5.5.23
string(11) "/tmp/Uw3NbM"
Output for 5.5.22
string(11) "/tmp/OWoQ1V"
Output for 5.5.21
string(11) "/tmp/fGwdm3"
Output for 5.5.20
string(11) "/tmp/dx7Qme"
Output for 5.5.19
string(11) "/tmp/B3CqFk"
Output for 5.5.18
string(11) "/tmp/PDLj3t"
Output for 5.5.17
string(11) "/tmp/l6iFRE"
Output for 5.5.16
string(11) "/tmp/aobwnM"
Output for 5.5.15
string(11) "/tmp/Ee1tiW"
Output for 5.5.14
string(11) "/tmp/mAJ3u6"
Output for 5.5.13
string(11) "/tmp/qQGvxg"
Output for 5.5.12
string(11) "/tmp/R7zAwk"
Output for 5.5.11
string(11) "/tmp/aZgmov"
Output for 5.5.10
string(11) "/tmp/QhhSyD"
Output for 5.5.9
string(11) "/tmp/gk4OqO"
Output for 5.5.8
string(11) "/tmp/BDM3UX"
Output for 5.5.7
string(11) "/tmp/qsJhq4"
Output for 5.5.6
string(11) "/tmp/bxUime"
Output for 5.5.5
string(11) "/tmp/5KtCTp"
Output for 5.5.4
string(11) "/tmp/3CS3Tv"
Output for 5.5.3
string(11) "/tmp/syYCyH"
Output for 5.5.2
string(11) "/tmp/KqcHrS"
Output for 5.5.1
string(11) "/tmp/hPkKpZ"
Output for 5.5.0
string(11) "/tmp/YlKeMb"
Output for 5.4.40
string(11) "/tmp/HtI8QN"
Output for 5.4.39
string(11) "/tmp/CDlDpX"
Output for 5.4.38
string(11) "/tmp/rtpf98"
Output for 5.4.37
string(11) "/tmp/HByDRh"
Output for 5.4.36
string(11) "/tmp/7e5aop"
Output for 5.4.35
string(11) "/tmp/7QzQUz"
Output for 5.4.34
string(11) "/tmp/FBnArF"
Output for 5.4.33
string(11) "/tmp/fV5WdN"
Output for 5.4.32
string(11) "/tmp/dZ98rZ"
Output for 5.4.31
string(11) "/tmp/lyUnY8"
Output for 5.4.30
string(11) "/tmp/Dw68pi"
Output for 5.4.29
string(11) "/tmp/XpQyqj"
Output for 5.4.28
string(11) "/tmp/PR5SVv"
Output for 5.4.27
string(11) "/tmp/3X40jC"
Output for 5.4.26
string(11) "/tmp/c5rgVM"
Output for 5.4.25
string(11) "/tmp/o5gIBT"
Output for 5.4.24
string(11) "/tmp/alQMIZ"
Output for 5.4.23
string(11) "/tmp/xnxZQa"
Output for 5.4.22
string(11) "/tmp/1CcV4l"
Output for 5.4.21
string(11) "/tmp/WRbxqu"
Output for 5.4.20
string(11) "/tmp/TJpUJC"
Output for 5.4.19
string(11) "/tmp/qk2GYF"
Output for 5.4.18
string(11) "/tmp/Kk1sIR"
Output for 5.4.17
string(11) "/tmp/9JIeB0"
Output for 5.4.16
string(11) "/tmp/qqIDQ5"
Output for 5.4.15
string(11) "/tmp/EL8xSe"
Output for 5.4.14
string(11) "/tmp/D5l9ln"
Output for 5.4.13
string(11) "/tmp/lzy8ux"
Output for 5.4.12
string(11) "/tmp/OC91nH"
Output for 5.4.11
string(11) "/tmp/s20jgS"
Output for 5.4.10
string(11) "/tmp/lRB8DU"
Output for 5.4.9
string(11) "/tmp/K7XHz3"
Output for 5.4.8
string(11) "/tmp/uKPEnc"
Output for 5.4.7
string(11) "/tmp/npxP9n"
Output for 5.4.6
string(11) "/tmp/GOiays"
Output for 5.4.5
string(11) "/tmp/J4PQWB"
Output for 5.4.4
string(11) "/tmp/kYGRoK"
Output for 5.4.3
string(11) "/tmp/TpqUbT"
Output for 5.4.2
string(11) "/tmp/eVC3KY"
Output for 5.4.1
string(11) "/tmp/edNUX7"
Output for 5.4.0
string(11) "/tmp/5D3Ucg"
Output for 4.3.0 - 4.3.11, 4.4.0 - 4.4.2, 5.0.0 - 5.0.5, 5.1.1 - 5.1.2, 5.3.4 - 5.3.29
bool(false)
Output for 5.3.3
string(11) "/tmp/AaXvfn"
Output for 5.3.2
string(11) "/tmp/wWO5Kw"
Output for 5.3.1
string(11) "/tmp/xth0fI"
Output for 5.3.0
string(11) "/tmp/bQR4sM"
Output for 5.2.17
string(11) "/tmp/ubdKfV"
Output for 5.2.16
string(11) "/tmp/4nVEb4"
Output for 5.2.15
string(11) "/tmp/LIrNde"
Output for 5.2.14
string(11) "/tmp/boyJPi"
Output for 5.2.13
string(11) "/tmp/Z3VUFr"
Output for 5.2.12
string(11) "/tmp/K2y7Ky"
Output for 5.2.11
string(11) "/tmp/JTEqFI"
Output for 5.2.10
string(11) "/tmp/byPPBS"
Output for 5.2.9
string(11) "/tmp/WdvkyX"
Output for 5.2.8
string(11) "/tmp/Jb1nh8"
Output for 5.2.7
string(11) "/tmp/BiEPWf"
Output for 5.2.6
string(11) "/tmp/TM1a5o"
Output for 5.2.5
string(11) "/tmp/L9AkLs"
Output for 5.2.4
string(11) "/tmp/iaYb5E"
Output for 5.2.3
string(11) "/tmp/HCiOAN"
Output for 5.2.2
string(11) "/tmp/mPEsPS"
Output for 5.2.1
string(11) "/tmp/LbAj0Z"
Output for 5.2.0
string(11) "/tmp/sv56ac"
Output for 5.1.6
string(11) "/tmp/EA1kCr"
Output for 5.1.5
string(11) "/tmp/EeYzWz"
Output for 5.1.4
string(11) "/tmp/518G2K"
Output for 5.1.3
string(11) "/tmp/XfODVR"
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/jISH4i"
Output for 4.4.8
string(11) "/tmp/fWdxwq"
Output for 4.4.7
string(11) "/tmp/wKNDux"
Output for 4.4.6
string(11) "/tmp/sMs2kE"
Output for 4.4.5
string(11) "/tmp/X4nmiO"
Output for 4.4.4
string(11) "/tmp/Gsf95W"
Output for 4.4.3
string(11) "/tmp/BHRAo1"

preferences:
315.65 ms | 401 KiB | 467 Q