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 $samp; function Check_post($array,$needle) { if(is_array($array)) { foreach($array as $key=>$value) { if($key == $needle) { echo $key." key exists "; } 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.0150.00018.30
8.3.50.0090.00922.11
8.3.40.0090.01218.82
8.3.30.0070.00719.22
8.3.20.0040.00420.20
8.3.10.0000.00822.13
8.3.00.0070.00022.45
8.2.180.0060.00916.48
8.2.170.0090.00622.96
8.2.160.0030.01020.53
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0070.00317.75
8.2.110.0000.00920.97
8.2.100.0080.00317.68
8.2.90.0080.00019.26
8.2.80.0030.00517.97
8.2.70.0060.00317.75
8.2.60.0030.00617.89
8.2.50.0040.00818.10
8.2.40.0000.00818.22
8.2.30.0050.00318.04
8.2.20.0050.00317.73
8.2.10.0030.00519.44
8.2.00.0040.00417.75
8.1.280.0090.00925.92
8.1.270.0040.00422.04
8.1.260.0070.00326.35
8.1.250.0040.00428.09
8.1.240.0120.00619.52
8.1.230.0070.00417.77
8.1.220.0040.00417.79
8.1.210.0090.00018.77
8.1.200.0090.00017.38
8.1.190.0030.00517.23
8.1.180.0060.00318.10
8.1.170.0060.00318.71
8.1.160.0040.00422.02
8.1.150.0000.00818.56
8.1.140.0050.00317.46
8.1.130.0000.00717.79
8.1.120.0070.00017.50
8.1.110.0070.00017.43
8.1.100.0000.00717.45
8.1.90.0080.00017.42
8.1.80.0000.00717.43
8.1.70.0070.00017.43
8.1.60.0040.00417.55
8.1.50.0000.00917.56
8.1.40.0000.00917.42
8.1.30.0070.00017.66
8.1.20.0030.00517.57
8.1.10.0000.00917.63
8.1.00.0040.00417.59
8.0.300.0040.00418.77
8.0.290.0000.00816.75
8.0.280.0030.00318.50
8.0.270.0030.00317.31
8.0.260.0060.00016.76
8.0.250.0050.00316.88
8.0.240.0000.00716.95
8.0.230.0000.00816.99
8.0.220.0040.00416.95
8.0.210.0030.00316.96
8.0.200.0050.00216.83
8.0.190.0000.00716.94
8.0.180.0000.00716.82
8.0.170.0000.00716.95
8.0.160.0030.00316.93
8.0.150.0030.00316.82
8.0.140.0000.00716.71
8.0.130.0030.00313.29
8.0.120.0030.00516.77
8.0.110.0040.00416.80
8.0.100.0040.00416.68
8.0.90.0000.00716.75
8.0.80.0070.01116.86
8.0.70.0040.00416.81
8.0.60.0040.00416.73
8.0.50.0050.00216.93
8.0.30.0070.01517.00
8.0.20.0120.00817.40
8.0.10.0030.00516.93
8.0.00.0150.00616.72
7.4.330.0060.00015.14
7.4.320.0060.00016.41
7.4.300.0030.00616.65
7.4.290.0050.00216.66
7.4.280.0040.00416.49
7.4.270.0000.00716.61
7.4.260.0030.00316.59
7.4.250.0050.00316.38
7.4.240.0020.00516.56
7.4.230.0000.00716.62
7.4.220.0120.00316.38
7.4.210.0090.00516.62
7.4.200.0030.00516.61
7.4.190.0020.00516.61
7.4.160.0060.00916.45
7.4.150.0100.00917.40
7.4.140.0100.00717.86
7.4.130.0160.00416.42
7.4.120.0100.00816.40
7.4.110.0100.00716.43
7.4.100.0110.00616.67
7.4.90.0070.01116.54
7.4.80.0130.00319.39
7.4.70.0100.00716.45
7.4.60.0100.00716.53
7.4.50.0040.00416.68
7.4.40.0060.01222.77
7.4.30.0000.01816.43
7.4.00.0000.01515.05
7.3.330.0020.00213.45
7.3.320.0030.00313.24
7.3.310.0020.00516.28
7.3.300.0030.00316.26
7.3.290.0070.01316.35
7.3.280.0050.01116.33
7.3.270.0090.01217.40
7.3.260.0070.01016.42
7.3.250.0110.00716.49
7.3.240.0110.00916.52
7.3.230.0150.00316.40
7.3.210.0120.00616.38
7.3.200.0080.01119.39
7.3.190.0130.00316.51
7.3.180.0100.00616.32
7.3.170.0120.00416.66
7.3.160.0120.00916.42
7.3.120.0070.00714.89
7.2.330.0060.01116.51
7.2.320.0120.00616.71
7.2.310.0160.00516.46
7.2.300.0150.00716.59
7.2.290.0030.01316.66
7.2.00.0000.01219.40
7.1.100.0770.01016.22
7.1.70.0050.00217.14
7.1.60.0070.00719.82
7.1.50.0100.01316.93
7.1.00.0030.07722.50
7.0.200.0060.00616.76
7.0.140.0030.09322.21
7.0.60.0130.07719.92
7.0.50.0070.05017.87
7.0.40.0070.09020.11
7.0.30.0330.07020.25
7.0.20.0330.08020.20
7.0.10.0330.07320.30
7.0.00.0030.04320.10
5.6.280.0000.07720.86
5.6.210.0130.07320.65
5.6.200.0070.05318.20
5.6.190.0000.04720.67
5.6.180.3770.04020.61
5.6.170.0230.06720.45
5.6.160.0030.08320.54
5.6.150.0070.09318.19
5.6.140.0030.08318.21
5.6.130.0000.07318.16
5.6.120.0100.05720.99
5.6.110.0070.07720.99
5.6.100.0170.07721.03
5.6.90.0100.05020.88
5.6.80.0000.04320.40
5.6.70.0300.08320.50
5.5.350.0000.08720.46
5.5.340.0070.08717.98
5.5.330.0070.03720.19
5.5.320.0300.03320.25
5.5.310.0200.04320.34
5.5.300.0100.07718.08
5.5.290.0130.08017.93
5.5.280.0130.08020.85
5.5.270.0230.06020.77
5.5.260.0130.07020.87
5.5.250.0070.07720.70
5.5.240.0200.06020.07
5.4.450.0900.07019.39
5.4.440.0870.06019.48
5.4.430.0100.05719.46
5.4.420.0070.06019.51
5.4.410.0170.05019.41
5.4.400.0130.05318.83
5.4.390.0170.05018.64
5.4.380.0330.04718.53
5.4.370.0100.05318.74
5.4.360.0270.03718.80
5.4.350.0130.05318.76
5.4.340.0230.04718.78
5.4.320.0030.03912.50
5.4.310.0030.04312.50
5.4.300.0060.03912.51
5.4.290.0030.04012.50
5.4.280.0080.04812.40
5.4.270.0030.05718.90
5.4.260.0000.05718.95
5.4.250.0130.04719.01
5.4.240.0070.05719.00
5.4.230.0130.06719.09
5.4.220.0130.07318.98
5.4.210.0170.07318.98
5.4.200.0070.05718.89
5.4.190.0070.05718.81
5.4.180.0000.06018.91
5.4.170.0170.04718.99
5.4.160.0070.05318.89
5.4.150.0070.05719.11
5.4.140.0130.04716.34
5.4.130.0130.06316.68
5.4.120.0030.06016.63
5.4.110.0030.05716.41
5.4.100.0130.06716.60
5.4.90.0030.05316.68
5.4.80.0070.06016.62
5.4.70.0170.05716.50
5.4.60.0100.05316.54
5.4.50.0100.04316.54
5.4.40.0030.06716.59
5.4.30.0070.08016.65
5.4.20.0170.06016.40
5.4.10.0130.05016.54
5.4.00.0100.06315.92
5.3.290.0090.03612.80
5.3.280.0130.04714.87
5.3.270.0000.06014.88
5.3.260.0100.06314.91
5.3.250.0070.05714.89
5.3.240.0070.05314.87
5.3.230.0070.07314.82
5.3.220.0170.04314.56
5.3.210.0030.09014.45
5.3.200.0070.05314.69
5.3.190.0100.06014.87
5.3.180.0200.04014.63
5.3.170.0070.06714.55
5.3.160.0030.05314.45
5.3.150.0130.05014.62
5.3.140.0130.04714.61
5.3.130.0030.07714.73
5.3.120.0100.05714.83
5.3.110.0200.06714.82
5.3.100.0070.05314.09
5.3.90.0130.04714.18
5.3.80.0100.05014.02
5.3.70.0030.06314.05
5.3.60.0130.04714.05
5.3.50.0070.05713.83
5.3.40.0070.05314.24
5.3.30.0100.04714.11
5.3.20.0100.06713.98
5.3.10.0130.04313.94
5.3.00.0130.04313.92
5.2.170.0100.04311.32
5.2.160.0100.04011.43
5.2.150.0100.06011.05
5.2.140.0030.05711.32
5.2.130.0030.05011.28
5.2.120.0030.04311.40
5.2.110.0070.04011.15
5.2.100.0100.04311.40
5.2.90.0030.05711.32
5.2.80.0030.06311.27
5.2.70.0030.04311.29
5.2.60.0030.04311.11
5.2.50.0170.05011.25
5.2.40.0070.04711.20
5.2.30.0100.04011.20
5.2.20.0030.05310.95
5.2.10.0030.04311.07
5.2.00.0100.05311.01
5.1.60.0070.03010.15
5.1.50.0070.03710.05
5.1.40.0000.05310.29
5.1.30.0030.05310.55
5.1.20.0070.05010.55
5.1.10.0070.04310.29
5.1.00.0070.04710.15
5.0.50.0100.0378.55
5.0.40.0000.0438.63
5.0.30.0030.0478.48
5.0.20.0070.0278.18
5.0.10.0070.0378.28
5.0.00.0030.0578.31
4.4.90.0000.0237.52
4.4.80.0030.0277.52
4.4.70.0100.0237.52
4.4.60.0000.0237.52
4.4.50.0000.0277.52
4.4.40.0070.0307.52
4.4.30.0030.0307.52
4.4.20.0000.0377.52
4.4.10.0100.0237.52
4.4.00.0000.0477.52
4.3.110.0130.0207.52
4.3.100.0030.0277.52
4.3.90.0030.0237.52
4.3.80.0070.0307.52
4.3.70.0030.0207.52
4.3.60.0000.0277.52
4.3.50.0070.0277.52
4.3.40.0000.0377.52
4.3.30.0070.0237.52
4.3.20.0070.0177.52
4.3.10.0100.0177.52
4.3.00.0130.0236.75

preferences:
49.44 ms | 401 KiB | 5 Q