3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(gzfile("/etc/passwd\x00"));
based on aR4uQ
Output for 5.4.0 - 7.2.6
Warning: gzfile() expects parameter 1 to be a valid path, string given in /in/E9IRJ on line 3 NULL
Output for 4.3.1 - 5.3.29
array(2) { [0]=> string(30) "root:x:0:0:root:/root:/bin/sh " [1]=> string(35) "nobody:x:99:99:nobody:/:/bin/false " }
Output for 4.3.0
array(14) { [0]=> string(32) "root:x:0:0:root:/root:/bin/bash " [1]=> string(36) "bin:x:1:1:bin:/bin:/usr/bin/nologin " [2]=> string(39) "daemon:x:2:2:daemon:/:/usr/bin/nologin " [3]=> string(50) "mail:x:8:12:mail:/var/spool/mail:/usr/bin/nologin " [4]=> string(42) "ftp:x:14:11:ftp:/srv/ftp:/usr/bin/nologin " [5]=> string(45) "http:x:33:33:http:/srv/http:/usr/bin/nologin " [6]=> string(39) "uuidd:x:68:68:uuidd:/:/usr/bin/nologin " [7]=> string(37) "dbus:x:81:81:dbus:/:/usr/bin/nologin " [8]=> string(41) "nobody:x:99:99:nobody:/:/usr/bin/nologin " [9]=> string(77) "systemd-journal-gateway:x:191:191:systemd-journal-gateway:/:/usr/bin/nologin " [10]=> string(63) "systemd-timesync:x:192:192:systemd-timesync:/:/usr/bin/nologin " [11]=> string(61) "systemd-network:x:193:193:systemd-network:/:/usr/bin/nologin " [12]=> string(65) "systemd-bus-proxy:x:194:194:systemd-bus-proxy:/:/usr/bin/nologin " [13]=> string(61) "systemd-resolve:x:195:195:systemd-resolve:/:/usr/bin/nologin " }