3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array=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" ); echo '<pre>'; print_r($array); echo '</pre>'; foreach($array as $final) { $final_array[] = array( 'title'=>$final['Title'], 'name'=>$final['Director']['Name'], 'birthyear'=> $final['Director']['BirthYear'] ); } echo '<pre>'; //print_r($final_array); echo '</pre>'; echo $final_array[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.3.60.0080.00818.40
8.3.50.0140.00516.58
8.3.40.0100.00618.88
8.3.30.0140.00718.83
8.3.20.0030.00518.80
8.3.10.0090.00020.65
8.3.00.0030.00517.59
8.2.180.0120.00618.30
8.2.170.0120.00322.96
8.2.160.0080.00622.25
8.2.150.0040.00424.18
8.2.140.0070.00324.66
8.2.130.0040.00426.16
8.2.120.0080.00019.79
8.2.110.0070.00320.79
8.2.100.0090.00318.03
8.2.90.0000.00719.04
8.2.80.0030.00617.97
8.2.70.0030.00517.75
8.2.60.0060.00318.05
8.2.50.0000.00918.07
8.2.40.0000.00820.01
8.2.30.0090.00318.15
8.2.20.0070.00017.63
8.2.10.0040.00417.68
8.2.00.0100.00017.59
8.1.280.0110.00425.92
8.1.270.0040.00423.99
8.1.260.0090.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00322.49
8.1.230.0030.00720.88
8.1.220.0030.00518.77
8.1.210.0100.00018.77
8.1.200.0030.00617.35
8.1.190.0030.00517.53
8.1.180.0060.00318.10
8.1.170.0000.01118.84
8.1.160.0000.00718.88
8.1.150.0040.00418.68
8.1.140.0060.00317.55
8.1.130.0040.00417.87
8.1.120.0030.00317.49
8.1.110.0080.00017.48
8.1.100.0070.00017.48
8.1.90.0050.00317.34
8.1.80.0040.00417.39
8.1.70.0050.00217.34
8.1.60.0050.00317.46
8.1.50.0020.00517.49
8.1.40.0040.00417.35
8.1.30.0040.00417.63
8.1.20.0040.00417.65
8.1.10.0000.00817.47
8.1.00.0030.00617.42
8.0.300.0070.00020.03
8.0.290.0040.00416.75
8.0.280.0030.00318.31
8.0.270.0030.00317.24
8.0.260.0000.00718.58
8.0.250.0000.00717.00
8.0.240.0040.00417.04
8.0.230.0030.00316.95
8.0.220.0040.00416.95
8.0.210.0030.00316.90
8.0.200.0030.00316.97
8.0.190.0040.00416.95
8.0.180.0000.00717.00
8.0.170.0040.00716.85
8.0.160.0030.00316.89
8.0.150.0040.00416.98
8.0.140.0070.00316.79
8.0.130.0050.00013.45
8.0.120.0050.00316.89
8.0.110.0040.00416.82
8.0.100.0000.00716.82
8.0.90.0040.00416.91
8.0.80.0000.01716.89
8.0.70.0080.00016.77
8.0.60.0040.00416.91
8.0.50.0020.00516.90
8.0.30.0120.00717.15
8.0.20.0080.01017.18
8.0.10.0040.00416.91
8.0.00.0130.00416.81
7.4.330.0000.00613.43
7.4.320.0030.00316.57
7.4.300.0000.00616.64
7.4.290.0020.00516.57
7.4.280.0070.00016.59
7.4.270.0000.00716.61
7.4.260.0000.00813.22
7.4.250.0060.00316.51
7.4.240.0000.00716.56
7.4.230.0020.00516.62
7.4.220.0040.01416.51
7.4.210.0090.00816.62
7.4.200.0030.00316.60
7.4.190.0040.00416.54
7.4.160.0100.01016.38
7.4.150.0060.01217.18
7.4.140.0080.01117.21
7.4.130.0100.01016.59
7.4.120.0050.01116.61
7.4.110.0090.01216.71
7.4.100.0140.00316.59
7.4.90.0120.00616.36
7.4.80.0040.01618.80
7.4.70.0130.01116.70
7.4.60.0130.00316.52
7.4.50.0000.00816.68
7.4.40.0110.00722.27
7.4.30.0110.00616.50
7.4.00.0090.00714.88
7.3.330.0060.00013.29
7.3.320.0000.00813.20
7.3.310.0000.00716.47
7.3.300.0000.00716.30
7.3.290.0100.00416.37
7.3.280.0080.01016.37
7.3.270.0100.01017.18
7.3.260.0090.01118.24
7.3.250.0150.00916.64
7.3.240.0120.00316.32
7.3.230.0140.00416.55
7.3.210.0090.01216.59
7.3.200.0110.01119.39
7.3.190.0100.01316.47
7.3.180.0110.00616.47
7.3.170.0130.00716.44
7.3.160.0090.00616.52
7.3.120.0040.01215.03
7.3.110.0080.01114.81
7.3.100.0090.00714.75
7.3.90.0040.00815.00
7.3.80.0080.00314.70
7.3.70.0050.01114.93
7.3.60.0020.01214.85
7.3.50.0050.00814.75
7.3.40.0050.00814.91
7.3.30.0050.00614.91
7.3.20.0040.01016.73
7.3.10.0060.00816.66
7.3.00.0030.01016.67
7.2.330.0110.00616.54
7.2.320.0220.00016.76
7.2.310.0210.00316.65
7.2.300.0150.00616.58
7.2.290.0110.00516.77
7.2.250.0040.01315.01
7.2.240.0110.00615.13
7.2.230.0090.00815.08
7.2.220.0090.00514.84
7.2.210.0050.01115.20
7.2.200.0130.00215.10
7.2.190.0120.00314.98
7.2.180.0070.00915.01
7.2.170.0040.01114.91
7.2.160.0000.01115.11
7.2.150.0040.01116.93
7.2.140.0120.00317.11
7.2.130.0070.01116.89
7.2.120.0040.00416.82
7.2.110.0040.00716.96
7.2.100.0030.00717.03
7.2.90.0060.01016.92
7.2.80.0100.00717.11
7.2.70.0040.00816.98
7.2.60.0090.00617.12
7.2.50.0030.01217.00
7.2.40.0080.00816.97
7.2.30.0070.01416.93
7.2.20.0030.00616.86
7.2.10.0030.01316.75
7.2.00.0090.00016.90
7.1.330.0050.01115.78
7.1.320.0020.01215.67
7.1.310.0110.00315.84
7.1.300.0080.00715.75
7.1.290.0070.00715.80
7.1.280.0080.00615.91
7.1.270.0080.00515.73
7.1.260.0070.00615.84
7.1.250.0090.00016.02
7.1.240.0030.01015.99
7.1.230.0050.00815.60
7.1.220.0090.00615.95
7.1.210.0030.01415.86
7.1.200.0070.00315.84
7.1.190.0090.00615.85
7.1.180.0120.00315.69
7.1.170.0000.00915.69
7.1.160.0030.01315.95
7.1.150.0030.00815.54
7.1.140.0110.00415.91
7.1.130.0070.01115.63
7.1.120.0030.00615.68
7.1.110.0050.00415.95
7.1.100.0060.00817.04
7.1.90.0090.00616.01
7.1.80.0080.00415.89
7.1.70.0060.00416.50
7.1.60.0090.00917.70
7.1.50.0070.01016.28
7.1.40.0000.00915.79
7.1.30.0060.00315.59
7.1.20.0110.00415.61
7.1.10.0120.00315.83
7.1.00.0050.04219.00
7.0.330.0040.00815.37
7.0.320.0030.01015.29
7.0.310.0000.01415.36
7.0.300.0090.00015.38
7.0.290.0090.00615.54
7.0.280.0100.00315.35
7.0.270.0030.01315.48
7.0.260.0080.00415.65
7.0.250.0130.00315.64
7.0.240.0030.00915.41
7.0.230.0000.01215.45
7.0.220.0070.00715.30
7.0.210.0030.01015.45
7.0.200.0070.00416.11
7.0.190.0090.00615.46
7.0.180.0100.00415.58
7.0.170.0060.00615.59
7.0.160.0040.01215.48
7.0.150.0090.00615.32
7.0.140.0050.03818.75
7.0.130.0090.00615.22
7.0.120.0070.00715.35
7.0.110.0100.01015.46
7.0.100.0060.01215.47
7.0.90.0090.00615.53
7.0.80.0070.00715.33
7.0.70.0160.00315.51
7.0.60.0190.03618.71
7.0.50.0090.02016.66
7.0.40.0130.03616.93
7.0.30.0080.03316.83
7.0.20.0230.04016.93
7.0.10.0100.04216.91
7.0.00.0030.04816.88
5.6.400.0060.00914.41
5.6.390.0000.01214.11
5.6.380.0100.00714.17
5.6.370.0040.01114.31
5.6.360.0030.01114.38
5.6.350.0070.01314.41
5.6.340.0030.00614.14
5.6.330.0000.01514.46
5.6.320.0130.00614.65
5.6.310.0000.01614.42
5.6.300.0090.00614.28
5.6.290.0030.00914.73
5.6.280.0060.04017.55
5.6.270.0070.00714.59
5.6.260.0030.01014.58
5.6.250.0070.01114.62
5.6.240.0090.00914.13
5.6.230.0100.00314.36
5.6.220.0130.00714.66
5.6.210.0140.04217.44
5.6.200.0050.04316.34
5.6.190.0080.02317.52
5.6.180.0080.02317.47
5.6.170.0150.03017.45
5.6.160.0100.04517.41
5.6.150.0030.02616.21
5.6.140.0070.02916.21
5.6.130.0070.02316.42
5.6.120.0070.03017.83
5.6.110.0100.04017.86
5.6.100.0100.04717.66
5.6.90.0140.04017.68
5.6.80.0100.03817.26
5.6.70.0060.00314.21
5.6.60.0090.00914.34
5.6.50.0000.01614.22
5.6.40.0100.00714.52
5.6.30.0060.00914.48
5.6.20.0090.00614.45
5.6.10.0070.00714.02
5.6.00.0040.00814.22
5.5.380.0190.00014.30
5.5.370.0030.01014.35
5.5.360.0090.00613.97
5.5.350.0150.03317.46
5.5.340.0050.04616.26
5.5.330.0100.02817.37
5.5.320.0180.03917.34
5.5.310.0150.03217.43
5.5.300.0080.02816.26
5.5.290.0100.04516.10
5.5.280.0040.04817.64
5.5.270.0050.04217.57
5.5.260.0110.04117.48
5.5.250.0050.02217.51
5.5.240.0110.02217.12
5.5.230.0030.01413.98
5.5.220.0070.00714.06
5.5.210.0090.00614.27
5.5.200.0060.01214.36
5.5.190.0030.00914.30
5.5.180.0040.00414.14
5.5.170.0070.00314.15
5.5.160.0030.01014.38
5.5.150.0120.00314.15
5.5.140.0070.00714.06
5.5.130.0090.00014.43
5.5.120.0060.00614.26
5.5.110.0040.00814.27
5.5.100.0070.00714.51
5.5.90.0090.00914.29
5.5.80.0030.00614.36
5.5.70.0100.00314.23
5.5.60.0090.00314.00
5.5.50.0000.01314.44
5.5.40.0070.01014.27
5.5.30.0060.00814.37
5.5.20.0030.00614.32
5.5.10.0090.00614.21
5.5.00.0030.01314.09
5.4.450.1860.02416.43
5.4.440.0070.02516.42
5.4.430.0690.02016.55
5.4.420.1850.02416.43
5.4.410.2120.01816.50
5.4.400.1970.02316.35
5.4.390.1930.02316.32
5.4.380.2270.02116.29
5.4.370.1910.01816.33
5.4.360.1760.02316.38
5.4.350.2520.02416.37
5.4.340.1780.02416.32
5.4.330.0060.00613.59
5.4.320.2990.02216.40
5.4.310.1690.02316.28
5.4.300.1990.02016.37
5.4.290.1800.01816.40
5.4.280.1640.02116.34
5.4.270.2060.02216.27
5.4.260.2040.02116.39
5.4.250.1900.02516.40
5.4.240.2000.02316.36
5.4.230.1730.02416.37
5.4.220.1600.02216.38
5.4.210.1520.02216.37
5.4.200.1890.01816.39
5.4.190.1920.02016.25
5.4.180.1760.02616.26
5.4.170.2210.02116.40
5.4.160.2130.02716.27
5.4.150.2200.02416.34
5.4.140.1610.02615.01
5.4.130.1780.02515.04
5.4.120.1190.02414.89
5.4.110.1670.02015.05
5.4.100.1520.02415.01
5.4.90.1760.01914.92
5.4.80.1390.01814.97
5.4.70.1560.01814.90
5.4.60.1530.02315.04
5.4.50.1830.01715.04
5.4.40.2020.01715.04
5.4.30.1980.01714.95
5.4.20.1980.02215.06
5.4.10.2050.02215.02
5.4.00.1910.02014.75
5.3.290.1800.01814.13
5.3.280.1670.01914.10
5.3.270.1950.02214.10
5.3.260.2110.02114.16
5.3.250.1990.02214.05
5.3.240.1760.02514.11
5.3.230.1430.01514.17
5.3.220.1400.02014.15
5.3.210.1350.02214.08
5.3.200.1670.02414.07
5.3.190.1800.02014.10
5.3.180.1570.02514.10
5.3.170.1590.01614.03
5.3.160.1660.02214.02
5.3.150.1430.01614.08
5.3.140.2020.02014.11
5.3.130.2040.02014.09
5.3.120.1920.02714.06
5.3.110.1960.02114.07
5.3.100.1880.01913.88
5.3.90.1890.01913.80
5.3.80.2300.02513.82
5.3.70.2270.02213.79
5.3.60.2350.01813.87
5.3.50.2230.02213.79
5.3.40.2020.02313.74
5.3.30.2050.01713.69
5.3.20.1870.02513.65
5.3.10.1940.02113.65
5.3.00.2000.02013.69
5.2.170.4030.03011.06
5.2.160.3900.02711.14
5.2.150.3130.02311.04
5.2.140.3270.03311.30
5.2.130.2730.03311.07
5.2.120.3130.02711.10
5.2.110.3530.02711.25
5.2.100.3030.02711.26
5.2.90.3370.02711.10
5.2.80.3130.03011.10
5.2.70.3100.03010.98
5.2.60.3100.03311.09
5.2.50.3570.03010.99
5.2.40.2670.03011.02
5.2.30.2730.03010.89
5.2.20.2670.03010.91
5.2.10.2270.03010.86
5.2.00.2700.02710.77
5.1.60.2500.02310.01
5.1.50.3800.0239.84
5.1.40.2730.0239.99
5.1.30.2670.03010.33
5.1.20.3000.02010.51
5.1.10.3170.02710.02
5.1.00.2730.02310.11
5.0.50.1500.0138.53
5.0.40.1100.0238.41
5.0.30.1500.0338.13
5.0.20.1470.0238.16
5.0.10.1570.0178.14
5.0.00.1130.0308.07
4.4.90.1300.0135.89
4.4.80.1270.0175.79
4.4.70.1530.0175.86
4.4.60.1430.0175.82
4.4.50.1330.0175.90
4.4.40.1200.0275.81
4.4.30.1300.0175.89
4.4.20.1630.0175.85
4.4.10.1370.0305.96
4.4.00.1500.0205.87
4.3.110.1500.0175.76
4.3.100.0930.0175.75
4.3.90.1370.0175.73
4.3.80.1670.0275.76
4.3.70.1300.0175.76
4.3.60.1100.0205.68
4.3.50.1230.0205.67
4.3.40.1130.0305.71
4.3.30.0770.0204.90
4.3.20.0770.0204.91
4.3.10.0830.0234.91
4.3.00.0830.0204.92

preferences:
47.03 ms | 401 KiB | 5 Q