3v4l.org

run code in 300+ PHP versions simultaneously
<?php $records = array( array( 1 => 2135, 'first_name' => 'John', 'last_name' => 'Doe', ), array( 1 => 3245, 'first_name' => 'Sally', 'last_name' => 'Smith', ), array( 1 => 5342, 'first_name' => 'Jane', 'last_name' => 'Jones', ), array( 1 => 5623, 'first_name' => 'Peter', 'last_name' => 'Doe', ) ); var_dump(array_column($records, 1));

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.0150.00616.50
8.3.50.0210.00016.27
8.3.40.0120.00918.46
8.3.30.0110.00718.71
8.3.20.0040.00418.70
8.3.10.0000.00821.76
8.3.00.0050.00319.26
8.2.180.0170.00016.63
8.2.170.0110.00322.96
8.2.160.0100.00320.29
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00019.83
8.2.120.0000.00826.35
8.2.110.0000.00920.85
8.2.100.0110.00017.72
8.2.90.0070.00418.98
8.2.80.0000.00817.97
8.2.70.0000.00817.50
8.2.60.0000.00817.92
8.2.50.0000.00818.10
8.2.40.0000.00720.59
8.2.30.0000.00719.14
8.2.20.0030.00517.87
8.2.10.0000.00717.93
8.2.00.0000.00717.63
8.1.280.0110.00425.92
8.1.270.0030.00622.18
8.1.260.0080.00028.09
8.1.250.0040.00428.09
8.1.240.0000.00923.82
8.1.230.0030.00920.31
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0000.00917.38
8.1.190.0030.00617.10
8.1.180.0040.00420.30
8.1.170.0050.00318.52
8.1.160.0030.00618.76
8.1.150.0000.00720.27
8.1.140.0080.00019.56
8.1.130.0000.00717.70
8.1.120.0000.00717.31
8.1.110.0000.00817.41
8.1.100.0080.00017.43
8.1.90.0050.00217.41
8.1.80.0050.00217.38
8.1.70.0080.00017.44
8.1.60.0000.00717.55
8.1.50.0030.00517.46
8.1.40.0000.00817.41
8.1.30.0050.00317.64
8.1.20.0000.00817.63
8.1.10.0000.00817.41
8.1.00.0040.00417.29
8.0.300.0000.00818.77
8.0.290.0060.00316.63
8.0.280.0000.00718.30
8.0.270.0000.00717.21
8.0.260.0030.00317.10
8.0.250.0070.00016.77
8.0.240.0030.00316.90
8.0.230.0000.00716.82
8.0.220.0070.00016.72
8.0.210.0000.00716.87
8.0.200.0030.00316.78
8.0.190.0070.00016.86
8.0.180.0080.00016.85
8.0.170.0000.00716.78
8.0.160.0030.00516.73
8.0.150.0030.00316.73
8.0.140.0000.00816.76
8.0.130.0060.00013.25
8.0.120.0040.00416.82
8.0.110.0080.00016.80
8.0.100.0040.00416.77
8.0.90.0000.00716.71
8.0.80.0030.01516.81
8.0.70.0070.00016.72
8.0.60.0040.00416.68
8.0.50.0040.00416.89
8.0.30.0130.00716.96
8.0.20.0110.00817.40
8.0.10.0040.00416.82
8.0.00.0030.01916.58
7.4.330.0030.00315.55
7.4.320.0060.00016.52
7.4.300.0060.00016.48
7.4.290.0070.00016.46
7.4.280.0000.00716.53
7.4.270.0070.00016.42
7.4.260.0040.00416.50
7.4.250.0030.00516.48
7.4.240.0030.00316.51
7.4.230.0000.00716.54
7.4.220.0080.01116.55
7.4.210.0080.00616.48
7.4.200.0000.00716.54
7.4.160.0050.01216.42
7.4.150.0060.01317.40
7.4.140.0070.01017.86
7.4.130.0140.00316.41
7.4.120.0120.00516.33
7.4.110.0030.01316.39
7.4.100.0070.01016.35
7.4.90.0030.01616.36
7.4.80.0100.00719.39
7.4.70.0110.00516.30
7.4.60.0090.00616.32
7.4.50.0060.00916.27
7.4.40.0130.00916.57
7.4.30.0120.00616.33
7.4.00.0030.01314.93
7.3.330.0030.00312.94
7.3.320.0000.00512.98
7.3.310.0040.00416.07
7.3.300.0000.00716.17
7.3.290.0030.00316.14
7.3.280.0090.01016.12
7.3.270.0030.01517.40
7.3.260.0130.00616.29
7.3.250.0100.00816.35
7.3.240.0070.01016.31
7.3.230.0170.00416.39
7.3.210.0120.00616.33
7.3.200.0000.01616.50
7.3.190.0060.01416.13
7.3.180.0080.00816.45
7.3.170.0060.01016.25
7.3.160.0160.00016.19
7.2.330.0090.00916.28
7.2.320.0100.00716.56
7.2.310.0060.00916.52
7.2.300.0130.00816.29
7.2.290.0120.00916.25
7.2.60.0110.01816.30
7.2.50.0080.00416.54
7.2.00.0030.00919.16
7.1.200.0060.00915.78
7.1.70.0000.00817.05
7.1.60.0040.00717.23
7.1.00.0070.07322.48
7.0.200.0450.00314.26
7.0.130.0100.05722.12
7.0.120.0030.06721.96
7.0.110.0130.05321.99
7.0.100.0070.05322.13
7.0.90.0070.05722.11
7.0.80.0070.05722.10
7.0.70.0030.05722.07
7.0.60.0100.05322.23
7.0.50.0070.05322.09
7.0.40.0100.05021.99
7.0.30.0070.05322.04
7.0.20.0070.05322.14
7.0.10.0070.05721.96
7.0.00.0000.06021.98
5.6.280.0070.05320.88
5.6.270.0100.05720.88
5.6.260.0070.05721.09
5.6.250.0000.06021.09
5.6.240.0000.06720.98
5.6.230.0030.06021.08
5.6.220.0030.07020.99
5.6.210.0170.04720.81
5.6.200.0100.05720.84
5.6.190.0130.05321.06
5.6.180.0100.05021.00
5.6.170.0030.05721.09
5.6.160.0170.04320.80
5.6.150.0100.06020.83
5.6.140.0130.06021.00
5.6.130.0100.05320.75
5.6.120.0100.05720.93
5.6.110.0070.05720.78
5.6.100.0000.06321.05
5.6.90.0070.05321.01
5.6.80.0070.05020.39
5.6.70.0000.05720.30
5.6.60.0100.05320.38
5.6.50.0170.04020.18
5.6.40.0000.05720.39
5.6.30.0030.05720.29
5.6.20.0100.05020.28
5.6.10.0100.04720.10
5.6.00.0000.05720.35

preferences:
65.56 ms | 401 KiB | 5 Q