3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_POST["balle"]["x"] = 7; $_POST["balle"]["y"] = 32; $_POST["balle"]["z"] = 17; $needle = "z"; $samp = Check_post($_POST,$needle); echo Check_post($_POST,$needle); function Check_post($array,$needle) { if(is_array($array)) { foreach($array as $key=>$value) { if($key == $needle) { echo "1"; } else { if(is_array($value)) { check_post($value,$needle); } } } } } ?>

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.3.60.0090.00918.68
8.3.50.0100.00522.04
8.3.40.0110.00418.88
8.3.30.0070.00719.04
8.3.20.0040.00420.29
8.3.10.0050.00322.13
8.3.00.0040.00422.06
8.2.180.0180.00016.38
8.2.170.0110.01122.96
8.2.160.0070.00720.47
8.2.150.0050.00324.18
8.2.140.0060.00324.66
8.2.130.0150.00326.16
8.2.120.0000.01017.63
8.2.110.0100.00022.23
8.2.100.0070.00417.78
8.2.90.0040.00419.14
8.2.80.0040.00417.97
8.2.70.0040.00417.50
8.2.60.0000.00917.93
8.2.50.0040.00418.07
8.2.40.0030.00518.28
8.2.30.0070.00317.99
8.2.20.0050.00317.65
8.2.10.0000.00819.43
8.2.00.0000.00717.77
8.1.280.0100.00725.92
8.1.270.0080.00022.19
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00623.83
8.1.230.0110.00018.87
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0060.00317.13
8.1.190.0030.00617.66
8.1.180.0040.00418.10
8.1.170.0030.00618.66
8.1.160.0000.00822.00
8.1.150.0040.00418.69
8.1.140.0000.00717.46
8.1.130.0050.00217.83
8.1.120.0040.00417.36
8.1.110.0000.00817.46
8.1.100.0050.00217.45
8.1.90.0040.00417.38
8.1.80.0050.00217.41
8.1.70.0030.00317.38
8.1.60.0030.00517.57
8.1.50.0040.00417.45
8.1.40.0070.00317.52
8.1.30.0000.00817.61
8.1.20.0000.00817.63
8.1.10.0000.00717.62
8.1.00.0040.00417.37
8.0.300.0000.00718.77
8.0.290.0050.00217.18
8.0.280.0030.00318.37
8.0.270.0000.00817.25
8.0.260.0070.00016.87
8.0.250.0030.00317.00
8.0.240.0070.00017.02
8.0.230.0000.00716.95
8.0.220.0000.00716.79
8.0.210.0030.00316.86
8.0.200.0060.00017.02
8.0.190.0050.00216.92
8.0.180.0040.00416.96
8.0.170.0040.00416.98
8.0.160.0050.00216.86
8.0.150.0040.00416.82
8.0.140.0030.00316.87
8.0.130.0070.00013.29
8.0.120.0030.00516.74
8.0.110.0040.00416.71
8.0.100.0040.00416.98
8.0.90.0000.00716.91
8.0.80.0120.00616.89
8.0.70.0000.00816.70
8.0.60.0030.00316.79
8.0.50.0030.00516.77
8.0.30.0120.01017.00
8.0.20.0120.00917.40
8.0.10.0040.00417.06
8.0.00.0150.00716.81
7.4.330.0030.00315.00
7.4.320.0030.00316.58
7.4.300.0060.00316.49
7.4.290.0040.00416.53
7.4.280.0000.00716.51
7.4.270.0030.00316.53
7.4.260.0000.00716.61
7.4.250.0070.00016.46
7.4.240.0020.00616.64
7.4.230.0030.00316.52
7.4.220.0040.01416.67
7.4.210.0070.00716.53
7.4.200.0070.00016.63
7.4.190.0000.00716.49
7.4.160.0100.00616.27
7.4.150.0170.00017.40
7.4.140.0110.01017.86
7.4.130.0090.00916.52
7.4.120.0110.00916.58
7.4.110.0170.00016.49
7.4.100.0130.00316.48
7.4.90.0120.00616.37
7.4.80.0110.00619.39
7.4.70.0090.00616.55
7.4.60.0120.00616.54
7.4.50.0040.00416.41
7.4.40.0060.00622.77
7.4.30.0040.01216.71
7.4.00.0030.01314.91
7.3.330.0030.00213.29
7.3.320.0050.00013.23
7.3.310.0030.00316.26
7.3.300.0000.00616.42
7.3.290.0080.00816.39
7.3.280.0110.00616.38
7.3.270.0130.00317.40
7.3.260.0110.00616.58
7.3.250.0090.01316.50
7.3.240.0150.00316.28
7.3.230.0100.01016.54
7.3.210.0030.01316.38
7.3.200.0060.01516.36
7.3.190.0090.01216.34
7.3.180.0090.00816.58
7.3.170.0150.00016.30
7.3.160.0040.01216.50
7.3.120.0100.00614.56
7.2.330.0090.00916.75
7.2.320.0110.00816.45
7.2.310.0040.01316.87
7.2.300.0100.00716.75
7.2.290.0160.00716.57
7.2.60.0060.00616.83
7.2.00.0000.01319.46
7.1.200.0060.01115.51
7.1.100.0030.00918.36
7.1.70.0040.00417.18
7.1.60.0070.01419.82
7.1.50.0100.01016.78
7.1.00.0030.07722.45
7.0.200.0090.00516.90
7.0.140.0130.06322.09
7.0.110.0000.04021.74
7.0.100.0000.04321.77
7.0.90.0070.04721.87
7.0.80.0030.04321.63
7.0.70.0000.04021.72
7.0.60.0030.03721.81
7.0.50.0030.04721.74
7.0.40.0000.06719.82
7.0.30.0000.07019.75
7.0.20.0000.07719.77
7.0.10.0070.07019.64
7.0.00.0000.07719.64
5.6.260.0030.04020.59
5.6.250.0130.03020.75
5.6.240.0030.05020.64
5.6.230.0030.04020.70
5.6.220.0030.03720.65
5.6.210.0030.04020.56
5.6.200.0030.04020.64
5.6.190.0070.03720.62
5.6.180.0070.05320.59
5.6.170.0030.04320.85
5.6.160.0030.08020.65
5.6.150.0070.07320.61
5.6.140.0000.08020.59
5.6.130.0000.08320.55
5.6.120.0030.08320.64
5.6.110.0100.07720.69
5.6.100.0100.07020.45
5.6.90.0070.07320.63
5.6.80.0030.07719.93
5.6.70.0030.08319.89
5.6.60.0100.07320.01
5.6.50.0030.04020.07
5.6.40.0070.07320.00
5.6.30.0070.05020.06
5.6.20.0070.06020.21
5.6.10.0070.07319.91
5.6.00.0130.07019.82
5.5.380.0000.04020.25
5.5.370.0070.06020.36
5.5.360.0070.04720.36
5.5.350.0070.03320.47
5.5.340.0000.04721.02
5.5.330.0000.04020.82
5.5.320.0000.04020.81
5.5.310.0000.07721.03
5.5.300.0070.08021.03
5.5.290.0000.08320.94
5.5.280.0030.05720.70
5.5.270.0100.05020.96
5.5.260.0030.09020.91
5.5.250.0000.06720.73
5.5.240.0030.07320.22
5.5.230.0130.06720.36
5.5.220.0030.08020.40
5.5.210.0030.07720.21
5.5.200.0030.04020.19
5.5.190.0030.07720.24
5.5.180.0030.08720.34
5.5.160.0030.08320.25
5.5.150.0000.09020.02
5.5.140.0070.07020.25
5.5.130.0000.07720.25
5.5.120.0030.08020.19
5.5.110.0030.08720.29
5.5.100.0030.08020.28
5.5.90.0030.07720.09
5.5.80.0030.08020.04
5.5.70.0000.07320.04
5.5.60.0000.05020.13
5.5.50.0130.03720.16
5.5.40.0070.07320.18
5.5.30.0000.07320.15
5.5.20.0000.08020.19
5.5.10.0070.03720.04
5.5.00.0130.07320.16
5.4.450.0030.07319.50
5.4.440.0100.07319.63
5.4.430.0000.07719.34
5.4.420.0030.04719.30
5.4.410.0100.06719.23
5.4.400.0030.07319.09
5.4.390.0070.06719.33
5.4.380.0100.03019.18
5.4.370.0100.06719.18
5.4.360.0000.04318.98
5.4.350.0070.07319.24
5.4.340.0070.07319.18
5.4.320.0030.07019.33
5.4.310.0100.07019.02
5.4.300.0070.06719.02
5.4.290.0070.07019.33
5.4.280.0070.07019.18
5.4.270.0100.07019.23
5.4.260.0070.07018.95
5.4.250.0070.06719.03
5.4.240.0000.07719.18
5.4.230.0070.07318.98
5.4.220.0070.05319.25
5.4.210.0070.04019.32
5.4.200.0030.06719.13
5.4.190.0070.07018.93
5.4.180.0030.07019.23
5.4.170.0000.07318.98
5.4.160.0070.04319.20
5.4.150.0070.07319.12
5.4.140.0100.06316.29
5.4.130.0070.07316.52
5.4.120.0030.06716.34
5.4.110.0000.08016.46
5.4.100.0000.04316.55
5.4.90.0070.07016.46
5.4.80.0030.05016.57
5.4.70.0000.04716.41
5.4.60.0030.07716.56
5.4.50.0030.07316.47
5.4.40.0070.07016.28
5.4.30.0030.06716.43
5.4.20.0000.07316.44
5.4.10.0070.07316.38
5.4.00.0070.07015.98
5.3.290.0070.07014.66
5.3.280.0070.05014.60
5.3.270.0100.04014.84
5.3.260.0030.07714.60
5.3.250.0000.07314.47
5.3.240.0030.07314.64
5.3.230.0030.06714.60
5.3.220.0100.07014.57
5.3.210.0070.07714.64
5.3.200.0000.08014.56
5.3.190.0030.07014.60
5.3.180.0070.05014.64
5.3.170.0030.07714.70
5.3.160.0100.06014.67
5.3.150.0000.07714.59
5.3.140.0030.07314.54
5.3.130.0070.07714.62
5.3.120.0000.08014.55
5.3.110.0070.06314.67
5.3.100.0100.06714.13
5.3.90.0000.08014.10
5.3.80.0000.07314.00
5.3.70.0030.04014.16
5.3.60.0100.06314.00
5.3.50.0070.07313.99
5.3.40.0030.07013.95
5.3.30.0000.07013.88
5.3.20.0030.03713.72
5.3.10.0070.06313.75
5.3.00.0030.05713.70
5.2.170.0030.04711.53
5.2.160.0030.06011.53
5.2.150.0070.04311.53
5.2.140.0000.05011.53
5.2.130.0030.03011.53
5.2.120.0030.05711.53
5.2.110.0100.05011.53
5.2.100.0070.05311.53
5.2.90.0070.05711.53
5.2.80.0030.06011.53
5.2.70.0000.06311.53
5.2.60.0000.06311.53
5.2.50.0030.05711.53
5.2.40.0000.06011.53
5.2.30.0000.06311.53
5.2.20.0000.04011.53
5.2.10.0070.05311.53
5.2.00.0030.06011.53
5.1.60.0030.03711.53
5.1.50.0000.05311.53
5.1.40.0030.02711.53
5.1.30.0030.05311.53
5.1.20.0070.05011.53
5.1.10.0000.05711.53
5.1.00.0000.05311.53
5.0.50.0030.04311.53
5.0.40.0000.04711.53
5.0.30.0030.06711.53
5.0.20.0000.04011.53
5.0.10.0000.03011.53
5.0.00.0100.06011.53
4.4.90.0000.03711.53
4.4.80.0030.02011.53
4.4.70.0000.03311.53
4.4.60.0030.02711.53
4.4.50.0000.03311.53
4.4.40.0030.05311.53
4.4.30.0030.03711.53
4.4.20.0030.03311.53
4.4.10.0070.03011.53
4.4.00.0000.05011.53
4.3.110.0070.03011.53
4.3.100.0000.03711.53
4.3.90.0070.02711.53
4.3.80.0000.06011.53
4.3.70.0030.02311.53
4.3.60.0000.03311.53
4.3.50.0000.03711.53
4.3.40.0000.05311.53
4.3.30.0030.02711.53
4.3.20.0000.03311.53
4.3.10.0070.02711.53
4.3.00.0000.03011.53

preferences:
40.19 ms | 401 KiB | 5 Q