3v4l.org

run code in 300+ PHP versions simultaneously
<?php $records = array( array( 'id' => 2135, 'first_name' => 'John', 'last_name' => 'Doe', ), array( 'id' => 3245, 'first_name' => 'Sally', 'last_name' => 'Smith', ), array( 'id' => 5342, 'first_name' => 'Jane', 'last_name' => 'Jones', ), array( 'id' => 5623, 'first_name' => 'Peter', 'last_name' => 'Doe', ) ); $firstNames = array_map( function($record) { return ['first_name' => $record['first_name']]; }, $records ); var_dump($firstNames);

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.0100.00716.50
8.3.50.0140.00523.00
8.3.40.0070.00718.55
8.3.30.0040.01119.08
8.3.20.0000.00820.16
8.3.10.0040.00421.77
8.3.00.0090.00017.55
8.2.180.0100.01025.92
8.2.170.0100.01019.13
8.2.160.0100.00322.96
8.2.150.0030.00624.18
8.2.140.0040.00424.66
8.2.130.0160.00326.16
8.2.120.0000.00821.16
8.2.110.0070.00321.95
8.2.100.0060.00619.57
8.2.90.0030.00619.21
8.2.80.0040.00417.97
8.2.70.0000.00817.63
8.2.60.0060.00317.93
8.2.50.0030.00618.07
8.2.40.0070.00018.16
8.2.30.0080.00018.13
8.2.20.0000.00817.81
8.2.10.0000.00718.12
8.2.00.0060.00317.75
8.1.280.0060.01025.92
8.1.270.0040.00423.89
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0060.00319.27
8.1.230.0070.00419.21
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0000.00817.23
8.1.180.0050.00318.10
8.1.170.0040.00418.63
8.1.160.0000.00821.89
8.1.150.0000.00718.83
8.1.140.0040.00417.46
8.1.130.0040.00417.88
8.1.120.0030.00417.45
8.1.110.0040.00417.47
8.1.100.0000.00717.49
8.1.90.0070.00017.51
8.1.80.0000.00717.50
8.1.70.0050.00217.44
8.1.60.0030.00617.47
8.1.50.0040.00417.51
8.1.40.0090.00017.44
8.1.30.0040.00417.56
8.1.20.0080.00017.50
8.1.10.0000.00717.34
8.1.00.0000.00717.43
8.0.300.0100.00118.55
8.0.290.0040.00416.63
8.0.280.0000.00718.30
8.0.270.0030.00317.10
8.0.260.0000.00817.20
8.0.250.0000.00716.93
8.0.240.0030.00616.77
8.0.230.0000.00716.96
8.0.220.0030.00316.71
8.0.210.0000.00716.84
8.0.200.0070.00016.96
8.0.190.0050.00216.84
8.0.180.0030.00616.80
8.0.170.0000.00716.91
8.0.160.0060.00616.83
8.0.150.0000.00716.87
8.0.140.0030.00516.84
8.0.130.0050.00013.32
8.0.120.0000.00816.72
8.0.110.0000.00716.80
8.0.100.0050.00316.78
8.0.90.0070.00016.74
8.0.80.0130.00316.86
8.0.70.0050.00216.86
8.0.60.0070.00016.79
8.0.50.0030.00616.90
8.0.30.0110.00916.97
8.0.20.0130.00717.40
8.0.10.0000.00717.02
8.0.00.0090.01216.74
7.4.330.0000.00615.07
7.4.320.0040.00416.45
7.4.300.0060.00016.60
7.4.290.0020.00516.51
7.4.280.0070.00316.59
7.4.270.0070.00016.55
7.4.260.0030.00616.53
7.4.250.0060.00316.61
7.4.240.0050.00216.47
7.4.230.0030.00316.59
7.4.220.0070.01116.56
7.4.210.0120.00316.63
7.4.200.0030.00316.58
7.4.160.0120.00416.38
7.4.150.0090.00917.40
7.4.140.0080.01017.86
7.4.130.0050.01116.42
7.4.120.0120.00816.51
7.4.110.0110.01116.66
7.4.100.0120.00616.48
7.4.90.0060.01116.48
7.4.80.0030.01919.39
7.4.70.0140.00316.45
7.4.60.0140.00316.54
7.4.50.0030.00516.25
7.4.40.0040.01216.44
7.4.30.0100.00716.51
7.4.00.0060.01214.88
7.3.330.0000.00613.31
7.3.320.0030.00313.23
7.3.310.0000.00716.20
7.3.300.0020.00516.17
7.3.290.0130.00616.29
7.3.280.0090.01116.20
7.3.270.0080.00817.40
7.3.260.0030.01416.23
7.3.250.0120.00816.41
7.3.240.0130.01116.36
7.3.230.0100.00716.39
7.3.210.0120.00616.33
7.3.200.0060.01619.39
7.3.190.0070.01116.42
7.3.180.0150.00616.30
7.3.170.0080.00816.32
7.3.160.0060.01316.47
7.2.330.0070.01116.54
7.2.320.0120.01216.44
7.2.310.0030.01716.33
7.2.300.0040.01516.36
7.2.290.0160.00616.35
7.2.60.0170.00316.99
7.2.50.0060.00616.93
7.1.200.0000.01115.66
7.1.70.0000.01117.08
7.1.60.0000.01116.90
7.1.50.0030.02016.98
7.1.00.0030.07322.36
7.0.200.0080.00316.67
7.0.140.0030.07322.01
7.0.120.0100.03322.00
7.0.110.0030.05022.09
7.0.100.0200.02322.00
7.0.90.0070.07721.99
7.0.80.0070.06722.16
7.0.70.0030.07321.93
7.0.60.0100.08322.05
7.0.50.0000.08322.08
7.0.40.0130.06319.94
7.0.30.0100.07720.02
7.0.20.0070.07020.00
7.0.10.0030.08719.98
7.0.00.0070.07019.95
5.6.280.0100.06721.13
5.6.270.0070.03721.08
5.6.260.0100.04020.97
5.6.250.0100.05321.08
5.6.240.0070.06020.89
5.6.230.0070.09320.84
5.6.220.0130.02720.79
5.6.210.0130.05021.02
5.6.200.0100.03720.86
5.6.190.0030.04020.89
5.6.180.0100.06321.01
5.6.170.0030.08720.72
5.6.160.0170.03320.79
5.6.150.0100.05720.89
5.6.140.0030.05021.02
5.6.130.0100.06020.80
5.6.120.0100.07720.80
5.6.110.0000.05320.88
5.6.100.0030.05320.93
5.6.90.0030.05320.79
5.6.80.0000.06020.26
5.6.70.0030.03720.41
5.6.60.0030.03720.34
5.6.50.0070.03320.38
5.6.40.0030.03720.14
5.6.30.0030.04020.14
5.6.20.0000.04020.23
5.6.10.0100.04020.34
5.6.00.0000.04020.30
5.5.380.0000.06317.53
5.5.370.0000.05017.60
5.5.360.0100.03017.69
5.5.350.0130.07017.55
5.5.340.0200.06318.05
5.5.330.0000.04318.23
5.5.320.0030.08317.93
5.5.310.0100.06718.25
5.5.300.0070.06017.95
5.5.290.0070.06718.22
5.5.280.0200.03317.91
5.5.270.0030.07718.23
5.5.260.0070.04017.91
5.5.250.0070.03717.77
5.5.240.0070.04717.35
5.5.230.0030.04317.31
5.5.220.0070.04017.49
5.5.210.0030.03717.51
5.5.200.0030.03717.43
5.5.190.0000.04317.31
5.5.180.0000.03717.41
5.5.160.0000.04317.26
5.5.150.0030.03717.45
5.5.140.0000.04017.28
5.5.130.0030.03317.54
5.5.120.0000.04017.48
5.5.110.0030.05017.47
5.5.100.0100.03017.09
5.5.90.0070.03017.37
5.5.80.0000.03717.21
5.5.70.0000.04017.34
5.5.60.0000.03717.20
5.5.50.0000.04017.34
5.5.40.0000.03017.36
5.5.30.0070.03017.33
5.5.20.0000.04317.14
5.5.10.0000.05317.17
5.5.00.0070.03017.16
5.4.450.0030.04719.20
5.4.440.0130.07019.24
5.4.430.0030.08019.42
5.4.420.0100.07719.20
5.4.410.0100.03319.36
5.4.400.0000.05018.93
5.4.390.0000.04018.93
5.4.380.0070.03319.02
5.4.370.0030.03719.12
5.4.360.0070.03319.09
5.4.350.0000.04019.10
5.4.340.0000.04019.07
5.4.320.0000.04319.17
5.4.310.0000.04319.15
5.4.300.0000.03719.24
5.4.290.0030.04318.93
5.4.280.0000.03719.09
5.4.270.0030.03318.95
5.4.260.0000.03719.09
5.4.250.0030.03318.95
5.4.240.0100.02719.09
5.4.230.0000.03019.09
5.4.220.0070.03319.16
5.4.210.0000.03719.10
5.4.200.0000.03719.08
5.4.190.0000.04019.08
5.4.180.0030.03718.91
5.4.170.0030.03719.09
5.4.160.0030.05718.99
5.4.150.0000.04018.89
5.4.140.0030.03316.57
5.4.130.0000.04716.41
5.4.120.0000.03716.49
5.4.110.0000.04716.50
5.4.100.0000.06316.50
5.4.90.0000.05716.50
5.4.80.0030.03316.31
5.4.70.0030.03316.25
5.4.60.0000.03316.21
5.4.50.0100.03316.48
5.4.40.0070.05016.61
5.4.30.0000.06716.14
5.4.20.0070.03316.36
5.4.10.0030.06316.37
5.4.00.0000.03315.88
5.3.290.0030.05714.55
5.3.280.0000.03714.60
5.3.270.0070.03014.74
5.3.260.0030.03014.63
5.3.250.0000.03714.63
5.3.240.0030.03314.46
5.3.230.0030.03714.59
5.3.220.0000.03714.55
5.3.210.0030.03314.61
5.3.200.0000.03714.59
5.3.190.0000.04314.59
5.3.180.0030.03714.60
5.3.170.0030.05314.70
5.3.160.0070.07014.65
5.3.150.0070.07314.56
5.3.140.0070.07314.55
5.3.130.0000.07714.56
5.3.120.0030.06714.56
5.3.110.0030.06014.56
5.3.100.0030.04714.04
5.3.90.0000.04314.15
5.3.80.0030.06314.02
5.3.70.0030.07014.25
5.3.60.0070.03014.07
5.3.50.0030.03013.80
5.3.40.0000.03714.02
5.3.30.0070.06314.05
5.3.20.0030.07013.82
5.3.10.0070.02713.73
5.3.00.0000.07013.66
5.2.170.0030.05311.05
5.2.160.0030.04311.15
5.2.150.0100.02311.04
5.2.140.0000.05710.93
5.2.130.0030.05311.01
5.2.120.0000.07011.10
5.2.110.0000.05311.03
5.2.100.0000.03311.05
5.2.90.0030.06011.04
5.2.80.0030.04311.04
5.2.70.0000.03311.02
5.2.60.0030.02311.11
5.2.50.0000.06010.98
5.2.40.0030.05710.98
5.2.30.0030.04011.01
5.2.20.0070.05310.89
5.2.10.0030.06010.77
5.2.00.0000.04010.80
5.1.60.0000.02310.11
5.1.50.0070.04310.11
5.1.40.0070.04710.11
5.1.30.0000.05710.48
5.1.20.0000.04310.57
5.1.10.0000.05010.11
5.1.00.0000.05310.22
5.0.50.0030.03310.11
5.0.40.0030.03710.11
5.0.30.0000.03010.11
5.0.20.0030.03710.11
5.0.10.0030.03310.11
5.0.00.0030.05710.11
4.4.90.0000.01710.11
4.4.80.0000.03710.11
4.4.70.0030.02710.11
4.4.60.0000.03310.11
4.4.50.0030.02310.11
4.4.40.0000.05010.11
4.4.30.0000.03010.11
4.4.20.0000.03710.11
4.4.10.0030.03010.11
4.4.00.0070.02710.11
4.3.110.0000.03310.11
4.3.100.0000.03310.11
4.3.90.0000.02310.11
4.3.80.0000.03310.11
4.3.70.0000.01710.11
4.3.60.0000.02710.11
4.3.50.0030.03310.11
4.3.40.0070.03010.11
4.3.30.0000.02010.11
4.3.20.0030.01310.11
4.3.10.0000.03710.11
4.3.00.0000.03310.11

preferences:
48.14 ms | 401 KiB | 5 Q