3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr=Array ( 0 => Array ( "Title" => "La science des rĂªves", "Year" => "2006", "Director" => Array ( "Name" => "Michel Gondry", "BirthYear" => "1963", "BirthPlace" => "Versailles, Yvelines, France" ) ), 1 => Array ( "Title" => "Arizona Dream", "Year" => "1992", "Director" => Array ( "Name" => "Emir Kusturica", "BirthYear" => "1954", "BirthPlace" => "Sarajevo, Bosnia and Herzegovina, Yugoslavia" ) ) ); $ck=Array ( 0 => "Title", 1 => "Director.Name", 2 => "Director.BirthYear" ); $newarray=array(); foreach($ck as $ck2) { $k = explode(".",$ck2); print_r($k[0]); echo sizeof($k); }

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.70.0070.01016.63
8.3.60.0100.01018.30
8.3.50.0090.01221.98
8.3.40.0040.01118.67
8.3.30.0100.00320.33
8.3.20.0070.00020.18
8.3.10.0000.00822.05
8.3.00.0080.00022.46
8.2.180.0150.00718.29
8.2.170.0070.00722.96
8.2.160.0100.00320.35
8.2.150.0030.00524.18
8.2.140.0080.00024.66
8.2.130.0130.00626.16
8.2.120.0050.00219.54
8.2.110.0030.00622.10
8.2.100.0090.00319.40
8.2.90.0030.00619.26
8.2.80.0030.00619.14
8.2.70.0060.00317.75
8.2.60.0040.00418.05
8.2.50.0000.00918.07
8.2.40.0080.00018.03
8.2.30.0040.00418.14
8.2.20.0000.00717.61
8.2.10.0000.00817.76
8.2.00.0030.00517.64
8.1.280.0100.01025.92
8.1.270.0000.00724.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00323.98
8.1.230.0030.00719.17
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0060.00317.23
8.1.190.0030.00617.39
8.1.180.0050.00320.11
8.1.170.0040.00418.59
8.1.160.0000.00722.14
8.1.150.0000.00718.65
8.1.140.0050.00317.39
8.1.130.0000.00717.73
8.1.120.0040.00417.37
8.1.110.0080.00017.36
8.1.100.0020.00517.46
8.1.90.0000.00717.40
8.1.80.0050.00317.48
8.1.70.0090.00017.37
8.1.60.0030.00617.57
8.1.50.0030.00517.55
8.1.40.0030.00617.59
8.1.30.0040.00417.64
8.1.20.0040.00417.65
8.1.10.0050.00317.48
8.1.00.0090.00317.57
8.0.300.0070.00018.77
8.0.290.0070.00017.18
8.0.280.0070.00018.37
8.0.270.0000.00717.32
8.0.260.0000.00716.81
8.0.250.0070.00016.89
8.0.240.0000.00816.98
8.0.230.0000.00716.92
8.0.220.0070.00016.87
8.0.210.0040.00416.93
8.0.200.0000.00616.89
8.0.190.0040.00416.92
8.0.180.0000.00816.93
8.0.170.0000.00816.89
8.0.160.0000.00716.96
8.0.150.0000.00716.80
8.0.140.0070.00016.92
8.0.130.0060.00013.34
8.0.120.0040.00416.86
8.0.110.0000.00716.87
8.0.100.0030.00516.89
8.0.90.0070.00016.97
8.0.80.0030.01816.84
8.0.70.0040.00417.03
8.0.60.0040.00416.94
8.0.50.0040.00416.72
8.0.30.0080.01117.03
8.0.20.0080.01017.40
8.0.10.0040.00416.97
8.0.00.0100.01216.90
7.4.330.0020.00215.00
7.4.320.0060.00016.59
7.4.300.0040.00416.53
7.4.290.0070.00016.61
7.4.280.0000.00716.36
7.4.270.0070.00016.59
7.4.260.0040.00416.36
7.4.250.0070.00016.46
7.4.240.0020.00616.58
7.4.230.0030.00316.45
7.4.220.0120.00616.70
7.4.210.0070.00916.53
7.4.200.0000.00716.64
7.4.190.0000.00716.46
7.4.160.0030.01216.43
7.4.150.0070.01017.40
7.4.140.0100.00717.86
7.4.130.0080.01016.60
7.4.120.0080.00916.51
7.4.110.0100.00716.50
7.4.100.0120.00616.50
7.4.90.0040.01416.57
7.4.80.0140.00319.39
7.4.70.0210.00316.46
7.4.60.0040.01216.52
7.4.50.0040.00416.66
7.4.40.0080.00322.77
7.4.30.0080.00816.47
7.4.00.0060.00914.79
7.3.330.0050.00013.09
7.3.320.0000.00513.18
7.3.310.0040.00416.27
7.3.300.0070.00016.31
7.3.290.0070.00716.26
7.3.280.0100.00816.27
7.3.270.0130.00517.40
7.3.260.0090.00916.60
7.3.250.0110.00716.38
7.3.240.0070.01516.21
7.3.230.0080.00916.43
7.3.210.0030.01316.30
7.3.200.0160.00019.39
7.3.190.0060.01216.44
7.3.180.0090.00616.63
7.3.170.0070.01316.61
7.3.160.0100.00616.42
7.3.120.0030.01314.98
7.2.330.0120.00616.72
7.2.320.0090.00916.81
7.2.310.0120.01316.74
7.2.300.0100.01016.45
7.2.290.0040.01216.87
7.2.80.0120.00316.66
7.2.00.0090.00319.72
7.1.200.0000.01415.81
7.1.100.0140.00718.22
7.1.70.0030.00316.97
7.1.60.0140.01019.43
7.1.50.0070.01417.09
7.1.00.0030.06722.40
7.0.200.0040.00416.95
7.0.140.0100.06321.95
7.0.60.0330.07019.92
7.0.50.0100.03317.81
7.0.40.0070.09020.21
7.0.30.0170.04320.33
7.0.20.0330.06320.09
7.0.10.0200.07320.16
7.0.00.0070.07720.33
5.6.280.0030.07321.12
5.6.210.0000.04320.72
5.6.200.0100.04718.15
5.6.190.0130.08320.61
5.6.180.0100.07720.67
5.6.170.0370.07320.49
5.6.160.0170.06720.54
5.6.150.0170.07018.09
5.6.140.0070.06018.21
5.6.130.0100.07018.17
5.6.120.0130.06720.96
5.6.110.0070.07021.02
5.6.100.0070.08321.03
5.6.90.0070.07320.97
5.6.80.0200.07020.53
5.5.350.0300.07720.40
5.5.340.0070.07717.98
5.5.330.0030.06020.46
5.5.320.0270.03720.21
5.5.310.0270.03020.18
5.5.300.0100.07018.02
5.5.290.0030.06717.96
5.5.280.0130.07720.88
5.5.270.0100.06320.88
5.5.260.0100.07320.97
5.5.250.0070.05020.70
5.5.240.0100.07320.37
5.4.450.4130.04319.23
5.4.440.0000.04319.29
5.4.430.1670.06719.38
5.4.420.4600.04019.23
5.4.410.4830.02319.44
5.4.400.3900.04018.86
5.4.390.3170.03319.13
5.4.380.3930.04318.87
5.4.370.3670.03318.96
5.4.360.3700.03719.16
5.4.350.3530.03718.85
5.4.340.3270.02719.16
5.4.320.3570.03719.09
5.4.310.4300.03719.18
5.4.300.4630.03719.03
5.4.290.4700.03718.96
5.4.280.4600.04018.86
5.4.270.2570.03718.96
5.4.260.0030.06718.93
5.4.250.3600.03319.23
5.4.240.3900.03019.12
5.4.230.3630.04319.07
5.4.220.3470.03719.00
5.4.210.3630.03719.12
5.4.200.4000.03719.05
5.4.190.3830.04319.14
5.4.180.3770.03719.14
5.4.170.0430.05719.02
5.4.160.1930.04019.02
5.4.150.4630.02719.22
5.4.140.3600.03316.13
5.4.130.4000.03016.27
5.4.120.3900.04016.33
5.4.110.4700.03016.46
5.4.100.4330.03016.41
5.4.90.4530.04016.45
5.4.80.4300.04316.44
5.4.70.4700.03716.45
5.4.60.4230.03316.54
5.4.50.3930.03016.35
5.4.40.4430.03316.29
5.4.30.4500.02716.20
5.4.20.4070.04016.46
5.4.10.4200.03316.43
5.4.00.4270.02315.77
5.3.290.4330.03714.61
5.3.280.3930.03314.56
5.3.270.3970.03714.54
5.3.260.0030.06014.54
5.3.250.4600.03714.53
5.3.240.3730.03314.53
5.3.230.4000.03714.69
5.3.220.3370.03314.54
5.3.210.4700.03314.39
5.3.200.4600.03014.50
5.3.190.4600.04014.36
5.3.180.4800.04014.49
5.3.170.4500.04314.52
5.3.160.3670.03314.50
5.3.150.4170.03714.52
5.3.140.4070.04014.34
5.3.130.4300.03714.64
5.3.120.4330.03314.53
5.3.110.4270.03014.43
5.3.100.4270.03714.13
5.3.90.4200.03713.98
5.3.80.3870.03713.81
5.3.70.3700.03713.95
5.3.60.3730.03313.94
5.3.50.4230.03013.93
5.3.40.3600.03313.73
5.3.30.3770.03713.84
5.3.20.4100.03013.67
5.3.10.4300.04013.61
5.3.00.3630.03313.73
5.2.170.3300.03011.03
5.2.160.3370.03011.12
5.2.150.3100.03311.13
5.2.140.3000.03011.03
5.2.130.3070.03011.19
5.2.120.3370.03311.26
5.2.110.3300.03010.96
5.2.100.3000.02711.11
5.2.90.2830.03311.07
5.2.80.3100.02711.08
5.2.70.3200.03310.97
5.2.60.0600.03011.02
5.2.50.2000.04011.09
5.2.40.2370.03010.95
5.2.30.2130.03310.89
5.2.20.2200.02310.89
5.2.10.3530.02710.91
5.2.00.2470.04010.71
5.1.60.1830.02010.04
5.1.50.2100.02710.14
5.1.40.2170.02010.02
5.1.30.2470.02310.28
5.1.20.1770.02010.49
5.1.10.2070.03010.11
5.1.00.2370.03010.13
5.0.50.1270.0208.56
5.0.40.1130.0178.38
5.0.30.1230.0308.14
5.0.20.0970.0208.24
5.0.10.1030.0178.23
5.0.00.0800.0378.06
4.4.90.1600.0175.82
4.4.80.0370.0075.89
4.4.70.1200.0175.78
4.4.60.1230.0175.84
4.4.50.1230.0135.90
4.4.40.1030.0235.80
4.4.30.1230.0205.79
4.4.20.1030.0135.94
4.4.10.1230.0175.88
4.4.00.0930.0235.85
4.3.110.1330.0135.73
4.3.100.0570.0175.70
4.3.90.0370.0135.79
4.3.80.1030.0235.73
4.3.70.0700.0135.72
4.3.60.0370.0135.72
4.3.50.1300.0105.75
4.3.40.0900.0235.75
4.3.30.0700.0205.23
4.3.20.0730.0205.23
4.3.10.0370.0175.23
4.3.00.0670.0105.23

preferences:
43.66 ms | 401 KiB | 5 Q