3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arrays = [ 252 => [ 0 => [ "id" => 2929850, "titulo" => " Film 1" ], 1 => [ "id" => 2929848, "titulo" => "Film 2" ] ], 251 => [ 0 => [ "id" => 2929796, "titulo" => "Film 3" ], 1 => [ "id" => 2929795, "titulo" => "Film 4" ] ] ]; $result = []; foreach ($arrays as $key => $array) { $result[$key] = array_keys($array); } print_r($result);

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.01118.56
8.3.60.0090.01218.56
8.3.50.0040.01118.08
8.3.40.0110.00418.72
8.3.30.0120.00418.73
8.3.20.0050.00318.86
8.3.10.0060.00320.92
8.3.00.0000.00819.69
8.2.190.0110.00716.58
8.2.180.0160.00618.29
8.2.170.0070.00719.09
8.2.160.0160.00022.96
8.2.150.0090.00925.66
8.2.140.0000.00724.66
8.2.130.0040.00426.16
8.2.120.0080.00019.48
8.2.110.0040.00422.19
8.2.100.0040.00817.84
8.2.90.0050.00317.75
8.2.80.0080.00018.86
8.2.70.0030.00518.04
8.2.60.0050.00317.93
8.2.50.0050.00318.10
8.2.40.0030.00619.34
8.2.30.0070.00019.37
8.2.20.0030.00517.99
8.2.10.0000.00717.97
8.2.00.0000.00719.48
8.1.280.0090.00925.92
8.1.270.0040.00420.79
8.1.260.0080.00026.35
8.1.250.0050.00228.09
8.1.240.0030.00624.03
8.1.230.0040.00722.01
8.1.220.0000.00818.64
8.1.210.0040.00418.77
8.1.200.0040.00817.48
8.1.190.0000.00817.35
8.1.180.0070.00018.10
8.1.170.0000.00818.47
8.1.160.0050.00218.88
8.1.150.0000.00718.79
8.1.140.0040.00417.75
8.1.130.0030.00318.99
8.1.120.0050.00217.50
8.1.110.0030.00617.49
8.1.100.0000.00817.38
8.1.90.0040.00417.38
8.1.80.0090.00017.41
8.1.70.0060.00317.36
8.1.60.0040.00417.61
8.1.50.0030.00617.54
8.1.40.0040.00417.41
8.1.30.0030.00617.67
8.1.20.0030.00617.47
8.1.10.0000.00717.37
8.1.00.0040.00417.32
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0070.00018.30
8.0.270.0070.00017.25
8.0.260.0000.01017.15
8.0.250.0000.00816.98
8.0.240.0090.00016.93
8.0.230.0070.00016.84
8.0.220.0050.00216.94
8.0.210.0070.00016.86
8.0.200.0030.00316.91
8.0.190.0040.00416.88
8.0.180.0040.00416.93
8.0.170.0060.00316.86
8.0.160.0030.00316.77
8.0.150.0080.00016.73
8.0.140.0060.00316.70
8.0.130.0000.00613.24
8.0.120.0030.00516.75
8.0.110.0050.00316.80
8.0.100.0050.00216.77
8.0.90.0000.00716.86
8.0.80.0130.00316.83
8.0.70.0000.00716.91
8.0.60.0000.00716.75
8.0.50.0040.00416.82
8.0.30.0060.01116.94
8.0.20.0110.00717.40
8.0.10.0000.00717.00
8.0.00.0090.01016.91
7.4.330.0000.00615.55
7.4.320.0030.00316.52
7.4.300.0000.00616.57
7.4.290.0030.00516.50
7.4.280.0040.00416.51
7.4.270.0040.00416.57
7.4.260.0030.00316.41
7.4.250.0000.00716.56
7.4.240.0070.00016.50
7.4.230.0030.00316.40
7.4.220.0000.00716.58
7.4.210.0070.00916.64
7.4.200.0080.00016.57
7.4.160.0050.01116.55
7.4.140.0070.01217.86
7.4.130.0070.01016.46
7.4.120.0100.01016.48
7.4.110.0070.01016.46
7.4.100.0060.00916.37
7.4.90.0140.00316.59
7.4.80.0150.00319.39
7.4.70.0090.01216.32
7.4.60.0160.00316.48
7.4.50.0060.00616.64
7.4.40.0070.01016.45
7.4.10.0040.01514.98
7.4.00.0090.00814.99
7.3.330.0060.00013.10
7.3.320.0060.00013.06
7.3.310.0000.00716.36
7.3.300.0020.00516.18
7.3.290.0060.00016.23
7.3.280.0030.01016.37
7.3.260.0130.00716.34
7.3.240.0100.00816.42
7.3.230.0130.00316.21
7.3.210.0160.00616.52
7.3.200.0120.01016.23
7.3.190.0080.00816.32
7.3.180.0090.00616.55
7.3.170.0090.00616.44
7.3.160.0090.00916.63
7.3.130.0070.01114.86
7.3.120.0130.00414.83
7.3.110.0080.00814.79
7.3.100.0060.00615.00
7.3.90.0050.01114.87
7.3.80.0050.00814.75
7.3.70.0080.00814.72
7.3.60.0080.00814.86
7.3.50.0060.00714.95
7.3.40.0060.00714.79
7.3.30.0020.01114.79
7.3.20.0070.00716.58
7.3.10.0000.01116.73
7.3.00.0030.00816.63
7.2.330.0030.02216.74
7.2.320.0090.00916.34
7.2.310.0180.00316.86
7.2.300.0080.00816.34
7.2.290.0080.01116.73
7.2.260.0030.01515.12
7.2.250.0080.01014.90
7.2.240.0050.01014.88
7.2.230.0130.00315.13
7.2.220.0070.00815.07
7.2.210.0090.00814.95
7.2.200.0050.01014.93
7.2.190.0100.00414.83
7.2.180.0030.01114.91
7.2.170.0050.00714.92
7.2.160.0040.00814.60
7.2.150.0110.00416.74
7.2.140.0030.00616.92
7.2.130.0080.00416.83
7.2.120.0040.00417.08
7.2.110.0070.00716.68
7.2.100.0070.00316.79
7.2.90.0090.00616.68
7.2.80.0040.01116.96
7.2.70.0030.01016.88
7.2.60.0750.00415.98
7.2.50.0680.00815.94
7.2.40.0620.01016.11
7.2.30.0730.00416.15
7.2.20.0780.00816.20
7.2.10.1410.00916.06
7.2.00.0750.01216.24
7.1.330.0030.01216.00
7.1.320.0100.00515.71
7.1.310.0030.01015.70
7.1.300.0030.01015.82
7.1.290.0060.00615.80
7.1.280.0050.00515.67
7.1.270.0080.00515.67
7.1.260.0090.00715.74
7.1.250.0080.00415.94
7.1.240.0000.01315.61
7.1.230.0140.00015.49
7.1.220.0090.00615.93
7.1.210.0080.00315.75
7.1.200.0030.01015.69
7.1.190.0060.00615.95
7.1.180.0030.01015.57
7.1.170.0700.00714.82
7.1.160.0650.01216.28
7.1.150.0690.01216.29
7.1.140.0720.00816.23
7.1.130.0850.00816.47
7.1.120.0800.00716.46
7.1.110.0760.01016.01
7.1.100.1030.00616.06
7.1.90.0910.00915.96
7.1.80.1000.01116.00
7.1.70.0760.00815.52
7.1.60.0630.01024.50
7.1.50.0990.01224.35
7.1.40.0950.01524.21
7.1.30.1070.01124.33
7.1.20.0870.01324.21
7.1.10.0960.01115.25
7.1.00.0630.00915.38
7.0.330.0070.00415.40
7.0.320.0060.00615.59
7.0.310.0040.01115.33
7.0.300.0000.00915.62
7.0.290.0030.00815.32
7.0.280.0000.01515.39
7.0.270.0030.01015.44
7.0.260.0060.00615.41
7.0.250.0000.00815.29
7.0.240.0100.00315.41
7.0.230.0070.00715.45
7.0.220.0030.01015.30
7.0.210.0050.00315.30
7.0.200.0000.01315.27
7.0.190.0030.01015.43
7.0.180.0090.00015.24
7.0.170.0030.01215.59
7.0.160.0000.01515.22
7.0.150.0040.01115.48
7.0.140.0040.01115.21
7.0.130.0060.00315.00
7.0.120.0000.01315.09
7.0.110.0090.00315.52
7.0.100.0060.00615.29
7.0.90.0100.00315.38
7.0.80.0080.00415.56
7.0.70.0000.00815.26
7.0.60.0060.00615.41
7.0.50.0060.00615.54
7.0.40.0080.00613.56
7.0.30.0000.01413.27
7.0.20.0110.00413.44
7.0.10.0060.00313.27
7.0.00.0030.00613.18
5.6.400.0080.00414.49
5.6.390.0100.00014.37
5.6.380.0000.01613.97
5.6.370.0030.01314.23
5.6.360.0040.01114.53
5.6.350.0120.00614.27
5.6.340.0060.00614.12
5.6.330.0040.01114.53
5.6.320.0090.00614.41
5.6.310.0040.01214.55
5.6.300.0060.00914.86
5.6.290.0120.00614.33
5.6.280.0120.00314.58
5.6.270.0060.00614.39
5.6.260.0000.01414.45
5.6.250.0040.01114.17
5.6.240.0060.00914.66
5.6.230.0030.00614.46
5.6.220.0110.00014.53
5.6.210.0040.00414.37
5.6.200.0060.00614.42
5.6.190.0040.00714.27
5.6.180.0030.01314.64
5.6.170.0070.00414.36
5.6.160.0100.00314.54
5.6.150.0030.01014.03
5.6.140.0030.01014.56
5.6.130.0070.01014.50
5.6.120.0040.00914.68
5.6.110.0060.00314.33
5.6.100.0100.00714.29
5.6.90.0060.01114.37
5.6.80.0000.01114.35
5.6.70.0030.01014.55
5.6.60.0100.00314.46
5.6.50.0000.01414.09
5.6.40.0090.00614.16
5.6.30.0060.00914.29
5.6.20.0120.00414.19
5.6.10.0100.00614.29
5.6.00.0000.01414.25

preferences:
17.66 ms | 401 KiB | 5 Q