3v4l.org

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

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.55
8.3.50.0100.00722.05
8.3.40.0100.01018.88
8.3.30.0110.00418.84
8.3.20.0030.00518.64
8.3.10.0000.00821.12
8.3.00.0040.00421.91
8.2.180.0100.01017.00
8.2.170.0150.00022.96
8.2.160.0030.01020.47
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0050.00221.04
8.2.110.0060.00320.73
8.2.100.0110.00017.78
8.2.90.0030.00619.17
8.2.80.0060.00317.97
8.2.70.0070.00317.38
8.2.60.0000.00718.04
8.2.50.0050.00318.10
8.2.40.0000.00718.16
8.2.30.0000.00719.44
8.2.20.0000.00717.79
8.2.10.0000.00717.63
8.2.00.0030.00617.75
8.1.280.0030.01425.92
8.1.270.0040.00423.99
8.1.260.0100.00726.35
8.1.250.0040.00428.09
8.1.240.0030.00719.65
8.1.230.0090.00317.70
8.1.220.0080.00017.79
8.1.210.0000.00818.77
8.1.200.0100.00017.35
8.1.190.0000.00817.35
8.1.180.0080.00018.10
8.1.170.0050.00318.57
8.1.160.0070.00318.88
8.1.150.0030.00518.72
8.1.140.0040.00417.41
8.1.130.0070.00017.83
8.1.120.0000.00717.36
8.1.110.0000.00717.38
8.1.100.0050.00317.46
8.1.90.0050.00217.34
8.1.80.0000.00717.43
8.1.70.0020.00517.46
8.1.60.0000.00917.54
8.1.50.0000.00717.41
8.1.40.0000.00817.42
8.1.30.0040.00417.57
8.1.20.0090.00017.55
8.1.10.0050.00217.44
8.1.00.0000.00917.53
8.0.300.0050.00518.77
8.0.290.0000.00716.75
8.0.280.0000.00718.44
8.0.270.0070.00017.32
8.0.260.0000.00716.78
8.0.250.0040.00416.95
8.0.240.0040.00416.84
8.0.230.0070.00016.94
8.0.220.0030.00316.83
8.0.210.0070.00016.87
8.0.200.0040.00416.95
8.0.190.0040.00416.93
8.0.180.0040.00416.92
8.0.170.0040.00416.88
8.0.160.0000.00716.98
8.0.150.0070.00016.86
8.0.140.0000.00716.86
8.0.130.0050.00013.34
8.0.120.0040.00416.76
8.0.110.0000.00816.89
8.0.100.0000.00716.68
8.0.90.0050.00216.86
8.0.80.0070.00716.83
8.0.70.0040.00416.96
8.0.60.0040.00416.77
8.0.50.0070.00016.86
8.0.30.0130.00717.29
8.0.20.0040.01417.40
8.0.10.0040.00417.08
8.0.00.0110.00916.70
7.4.330.0000.00516.83
7.4.320.0000.00716.50
7.4.300.0030.00316.50
7.4.290.0000.00716.52
7.4.280.0000.00716.63
7.4.270.0040.00416.54
7.4.260.0060.00013.29
7.4.250.0040.00416.43
7.4.240.0030.00516.58
7.4.230.0000.00716.67
7.4.220.0070.01116.45
7.4.210.0040.01316.58
7.4.200.0070.00016.60
7.4.190.0030.00316.74
7.4.160.0070.00716.52
7.4.150.0170.00017.40
7.4.140.0090.00817.86
7.4.130.0170.00216.51
7.4.120.0090.00816.39
7.4.110.0090.00916.47
7.4.100.0090.00816.49
7.4.90.0120.00616.61
7.4.80.0100.00719.39
7.4.70.0060.01216.54
7.4.60.0100.00716.53
7.4.50.0040.00416.59
7.4.40.0070.00722.77
7.4.30.0160.00616.49
7.4.00.0090.00915.05
7.3.330.0030.00313.35
7.3.320.0050.00013.32
7.3.310.0070.00016.45
7.3.300.0000.00616.37
7.3.290.0040.01116.37
7.3.280.0070.00816.43
7.3.270.0170.00017.40
7.3.260.0190.01918.24
7.3.250.0080.00816.35
7.3.240.0100.00716.61
7.3.230.0090.00916.39
7.3.210.0090.00616.41
7.3.200.0130.01019.39
7.3.190.0100.00716.43
7.3.180.0090.00616.36
7.3.170.0100.00616.30
7.3.160.0080.00816.53
7.3.120.0000.01814.79
7.2.330.0110.00716.48
7.2.320.0030.02016.57
7.2.310.0130.01316.73
7.2.300.0090.01216.51
7.2.290.0070.01116.72
7.2.00.0030.00919.68
7.1.100.0030.01017.93
7.1.70.0060.00617.30
7.1.60.0110.01419.17
7.1.50.0040.01816.72
7.1.00.0030.05022.46
7.0.200.0240.00314.50
7.0.140.0000.07722.21
7.0.60.0130.07719.89
7.0.50.0030.03717.97
7.0.40.0100.03720.30
7.0.30.0330.04020.28
7.0.20.0370.06720.19
7.0.10.0230.06020.05
7.0.00.0000.06020.05
5.6.280.0100.06721.08
5.6.210.0030.04020.77
5.6.200.0100.07718.29
5.6.190.0130.07720.57
5.6.180.0370.07720.61
5.6.170.0430.06020.47
5.6.160.0100.08020.56
5.6.150.0170.06318.18
5.6.140.0070.08018.23
5.6.130.0030.04318.15
5.6.120.0100.07321.15
5.6.110.0130.07321.01
5.6.100.0100.08021.00
5.6.90.0100.08020.99
5.6.80.0030.03720.40
5.6.70.0200.06720.37
5.5.350.0430.05720.39
5.5.340.0100.08317.97
5.5.330.0100.08020.19
5.5.320.0300.04320.27
5.5.310.0230.08320.25
5.5.300.0130.07318.00
5.5.290.0100.07318.08
5.5.280.0000.04320.73
5.5.270.0070.04720.79
5.5.260.0100.08320.86
5.5.250.0170.07320.68
5.5.240.0170.07720.33
5.4.450.2300.04019.55
5.4.440.2300.04319.40
5.4.430.2370.03319.46
5.4.420.2330.03719.27
5.4.410.1730.03719.40
5.4.400.0000.04319.17
5.4.390.0100.06719.09
5.4.380.1000.03019.06
5.4.370.1800.04019.16
5.4.360.2530.03719.16
5.4.350.2570.03719.22
5.4.340.2030.03719.08
5.4.320.2100.04319.24
5.4.310.2100.04018.84
5.4.300.2100.03719.08
5.4.290.2400.02719.14
5.4.280.2270.04318.87
5.4.270.2330.03719.22
5.4.260.2400.03019.18
5.4.250.2130.04019.06
5.4.240.1770.04319.19
5.4.230.2400.03319.19
5.4.220.2270.04019.08
5.4.210.2400.04019.01
5.4.200.2600.04319.14
5.4.190.2630.03719.21
5.4.180.2400.03318.86
5.4.170.2400.03319.05
5.4.160.2200.03719.05
5.4.150.2630.03719.07
5.4.140.2230.04016.34
5.4.130.2530.03316.50
5.4.120.2770.03716.34
5.4.110.2470.05316.25
5.4.100.2500.03716.27
5.4.90.2500.03316.58
5.4.80.2530.04016.23
5.4.70.2600.03716.34
5.4.60.2870.04016.43
5.4.50.2570.03716.48
5.4.40.2830.03016.42
5.4.30.2330.04016.42
5.4.20.2230.03716.25
5.4.10.2370.03316.61
5.4.00.2200.04015.78
5.3.290.2500.04314.56
5.3.280.2500.04014.51
5.3.270.2330.03314.68
5.3.260.2230.04714.61
5.3.250.2530.03714.58
5.3.240.2330.04314.69
5.3.230.2830.03314.61
5.3.220.2630.03014.68
5.3.210.2630.03314.55
5.3.200.2300.03714.48
5.3.190.2570.03714.54
5.3.180.2530.03714.57
5.3.170.2400.04314.64
5.3.160.2570.04014.47
5.3.150.2370.03014.48
5.3.140.2430.04014.56
5.3.130.2570.04014.63
5.3.120.2700.04314.54
5.3.110.2530.04014.56
5.3.100.2530.04014.11
5.3.90.2430.03314.09
5.3.80.2330.03313.94
5.3.70.2530.04013.92
5.3.60.2400.04014.01
5.3.50.2470.03314.00
5.3.40.2330.03714.07
5.3.30.2300.03713.83
5.3.20.2270.04013.59
5.3.10.2430.04013.66
5.3.00.2700.03313.86
5.2.170.2070.02311.21
5.2.160.1870.02711.36
5.2.150.2070.02711.06
5.2.140.2200.03011.07
5.2.130.2100.02711.11
5.2.120.2000.02711.01
5.2.110.2170.03311.18
5.2.100.1930.03311.08
5.2.90.1930.02011.33
5.2.80.0100.03011.02
5.2.70.0030.03011.14
5.2.60.0030.03010.97
5.2.50.0030.03011.07
5.2.40.1300.03311.00
5.2.30.1670.02310.98
5.2.20.1630.02710.91
5.2.10.1600.03010.91
5.2.00.1700.03010.86
5.1.60.1700.0239.91
5.1.50.1570.0239.90
5.1.40.1800.0279.87
5.1.30.1530.03010.27
5.1.20.1630.02710.36
5.1.10.1700.02310.06
5.1.00.1700.0279.98
5.0.50.1000.0238.53
5.0.40.0730.0208.46
5.0.30.0800.0338.11
5.0.20.1030.0278.28
5.0.10.0970.0208.15
5.0.00.0700.0308.25
4.4.90.0900.0177.87
4.4.80.0770.0137.87
4.4.70.0770.0137.87
4.4.60.0900.0177.87
4.4.50.0830.0177.87
4.4.40.0830.0237.87
4.4.30.1070.0237.87
4.4.20.1130.0207.87
4.4.10.1330.0137.87
4.4.00.1430.0337.87
4.3.110.0930.0177.87
4.3.100.0930.0137.87
4.3.90.0930.0137.87
4.3.80.1200.0307.87
4.3.70.1130.0177.87
4.3.60.1000.0177.87
4.3.50.1230.0207.87
4.3.40.1270.0307.87
4.3.30.0700.0237.87
4.3.20.0670.0277.87
4.3.10.0500.0177.87
4.3.00.0530.0177.87

preferences:
53.92 ms | 401 KiB | 5 Q