3v4l.org

run code in 500+ PHP versions simultaneously
<?php @mkdir("/tmp/t/a/b/c",0777,true); file_put_contents("/tmp/t/a/b/b.php","MARKER"); $prefix="/tmp/t/a/b/c/x-"; $p1=$prefix."../../b".".php"; var_dump($p1, file_exists($p1), realpath($p1)); $p2=$prefix."..%2F..%2Fb.php"; var_dump(file_exists("/tmp/t/a/b/c/x-".chr(0)));

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.5.100.0040.00418.68
8.5.90.0060.00318.69
8.5.80.0080.00218.51
8.5.70.0030.00416.66
8.5.60.0100.00616.74
8.5.50.0050.00816.72
8.5.40.0050.00316.64
8.5.30.0100.00716.66
8.5.20.0080.00516.89
8.5.10.0090.00616.70
8.5.00.0050.00316.52
8.4.250.0060.00419.71
8.4.240.0130.00919.55
8.4.230.0100.00919.46
8.4.220.0140.00619.53
8.4.210.0080.00719.47
8.4.200.0080.00719.68
8.4.190.0040.00519.51
8.4.180.0070.00319.60
8.4.170.0140.00719.56
8.4.160.0060.00619.48
8.4.150.0050.00419.57
8.4.140.0050.00317.70
8.4.130.0130.00617.66
8.4.120.0070.00717.86
8.4.110.0100.00917.90
8.4.100.0140.00517.89
8.4.90.0040.00818.03
8.4.80.0050.00317.95
8.4.70.0080.00117.68
8.4.60.0080.00517.80
8.4.50.0100.00917.84
8.4.40.0110.00817.80
8.4.30.0040.00817.79
8.4.20.0100.00917.74
8.4.10.0060.00817.86
8.3.330.0100.00818.48
8.3.320.0140.00518.44
8.3.310.0110.00218.57
8.3.300.0050.00318.38
8.3.290.0040.00518.38
8.3.280.0130.00718.31
8.3.270.0100.00516.70
8.3.260.0090.00616.66
8.3.250.0040.00416.69
8.3.240.0050.00316.62
8.3.230.0090.00616.69
8.3.220.0060.00316.82
8.3.210.0040.00416.75
8.3.200.0100.00716.69
8.3.190.0070.00416.76
8.3.180.0110.00716.75
8.3.170.0100.00616.75
8.3.160.0070.00416.81
8.3.150.0070.00216.74
8.3.140.0070.01216.67
8.3.130.0100.00816.76
8.3.120.0080.00316.81
8.3.110.0070.01016.79
8.3.100.0100.00716.80
8.3.90.0150.00416.74
8.3.80.0090.00716.79
8.3.70.0080.00516.87
8.3.60.0110.00716.79
8.3.50.0080.00516.91
8.3.40.0060.00317.96
8.3.30.0100.00817.96
8.3.20.0080.00417.90
8.3.10.0120.00618.04
8.3.00.0100.00217.91
8.2.330.0060.00318.18
8.2.320.0060.00318.17
8.2.310.0060.00318.11

preferences:
47.34 ms | 791 KiB | 5 Q