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', ) ); print_r(array_column($records, null, 'id'));

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.0140.00318.18
8.3.50.0140.00521.92
8.3.40.0140.00718.67
8.3.30.0070.01018.92
8.3.20.0030.00520.21
8.3.10.0040.00420.36
8.3.00.0050.00319.13
8.2.180.0070.00716.38
8.2.170.0140.00722.96
8.2.160.0110.00320.32
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0080.00026.16
8.2.120.0080.00019.83
8.2.110.0100.00022.30
8.2.100.0060.00617.78
8.2.90.0000.00819.07
8.2.80.0080.00017.97
8.2.70.0060.00317.50
8.2.60.0060.00317.93
8.2.50.0060.00318.07
8.2.40.0000.00817.97
8.2.30.0050.00319.52
8.2.20.0040.00417.61
8.2.10.0000.00817.89
8.2.00.0000.00817.50
8.1.280.0100.01025.92
8.1.270.0090.00022.19
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0070.00323.68
8.1.230.0030.00719.01
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0030.00617.23
8.1.190.0040.00417.00
8.1.180.0000.00818.10
8.1.170.0060.00318.60
8.1.160.0000.00722.00
8.1.150.0000.00718.85
8.1.140.0050.00217.29
8.1.130.0000.00717.73
8.1.120.0000.00717.26
8.1.110.0030.00417.38
8.1.100.0040.00417.27
8.1.90.0040.00417.42
8.1.80.0000.00717.29
8.1.70.0030.00317.29
8.1.60.0040.00417.39
8.1.50.0030.00517.36
8.1.40.0000.00817.31
8.1.30.0060.00317.57
8.1.20.0040.00417.47
8.1.10.0000.00717.36
8.1.00.0030.00517.35
8.0.300.0070.00018.77
8.0.290.0000.00716.63
8.0.280.0000.00718.29
8.0.270.0090.00017.01
8.0.260.0000.00617.18
8.0.250.0000.00716.89
8.0.240.0040.00416.89
8.0.230.0000.00816.87
8.0.220.0030.00316.73
8.0.210.0040.00416.77
8.0.200.0070.00016.94
8.0.190.0000.00716.88
8.0.180.0030.00516.84
8.0.170.0000.00816.81
8.0.160.0040.00416.81
8.0.150.0070.00016.68
8.0.140.0030.00316.82
8.0.130.0030.00313.29
8.0.120.0000.00816.73
8.0.110.0040.00416.78
8.0.100.0030.00516.72
8.0.90.0050.00316.73
8.0.80.0030.01216.86
8.0.70.0000.00716.80
8.0.60.0040.00416.75
8.0.50.0030.00516.59
8.0.30.0140.00516.97
8.0.20.0140.00517.40
8.0.10.0000.00716.84
8.0.00.0080.00916.57
7.4.330.0030.00315.00
7.4.320.0050.00316.33
7.4.300.0060.00016.37
7.4.290.0020.00516.43
7.4.280.0060.00016.51
7.4.270.0000.00716.52
7.4.260.0040.00416.50
7.4.250.0000.00816.46
7.4.240.0020.00516.39
7.4.230.0000.00716.54
7.4.220.0090.00916.39
7.4.210.0060.00916.63
7.4.200.0070.00016.55
7.4.160.0080.00816.40
7.4.150.0070.01717.40
7.4.140.0090.00917.86
7.4.130.0040.01316.50
7.4.120.0120.00516.43
7.4.110.0030.01316.44
7.4.100.0140.00316.36
7.4.90.0040.01216.36
7.4.80.0060.01219.39
7.4.70.0060.01016.54
7.4.60.0080.01116.42
7.4.50.0000.00816.49
7.4.40.0030.01316.22
7.4.30.0030.01316.30
7.4.00.0070.01014.93
7.3.330.0030.00312.89
7.3.320.0050.00012.87
7.3.310.0000.00715.98
7.3.300.0030.00316.15
7.3.290.0160.00316.09
7.3.280.0090.00916.14
7.3.270.0100.01317.40
7.3.260.0070.01016.38
7.3.250.0100.01016.28
7.3.240.0070.01016.50
7.3.230.0120.00616.39
7.3.210.0040.01416.16
7.3.200.0090.01219.39
7.3.190.0130.00316.09
7.3.180.0090.00616.04
7.3.170.0040.01416.43
7.3.160.0100.01316.27
7.2.330.0030.01316.48
7.2.320.0030.01416.51
7.2.310.0070.01016.53
7.2.300.0080.00816.14
7.2.290.0080.00816.50
7.2.60.0000.01416.80
7.2.00.0040.00719.21
7.1.200.0040.00815.82
7.1.100.0030.01017.96
7.1.70.0030.00617.06
7.1.60.0090.01519.61
7.1.50.0100.01416.93
7.1.00.0130.06322.35
7.0.200.0100.00016.29
7.0.140.0070.06322.16
7.0.60.0070.08320.07
7.0.50.0130.04317.93
7.0.40.0100.03720.13
7.0.30.0270.07720.26
7.0.20.0270.07720.23
7.0.10.0130.06720.12
7.0.00.0070.04020.24
5.6.280.0030.07721.00
5.6.210.0070.03720.57
5.6.200.0100.08018.18
5.6.190.0030.07320.59
5.6.180.0330.06720.45
5.6.170.0300.07320.51
5.6.160.0130.04020.59
5.6.150.0100.08018.21
5.6.140.0100.06318.14
5.6.130.0030.08318.13
5.6.120.0070.04020.89
5.6.110.0130.07720.97
5.6.100.0200.07320.95
5.6.90.0000.09020.96
5.6.80.0030.04020.53
5.5.350.0270.07320.41
5.5.340.0100.07717.94
5.5.330.0100.08020.31
5.5.320.0270.03320.27
5.5.310.0300.04320.31
5.5.300.0200.06318.06
5.5.290.0070.05317.93
5.5.280.0030.04020.68
5.5.270.0030.08720.81
5.5.260.0100.08020.72
5.5.250.0000.07320.66
5.5.240.0100.03020.03
5.4.450.1270.05319.43
5.4.440.0430.03719.61
5.4.430.0270.04319.16
5.4.420.0100.06719.54
5.4.410.0430.05319.22
5.4.400.0200.05018.90
5.4.390.0200.05318.93
5.4.380.0300.05718.76
5.4.370.0400.07318.48
5.4.360.0470.06318.57
5.4.350.0230.08018.63
5.4.340.0270.07018.63
5.4.320.0070.03612.46
5.4.310.0070.04212.45
5.4.300.0090.04412.46
5.4.290.0070.04212.45
5.4.280.0070.03712.35
5.4.270.0080.03712.35
5.4.260.0060.03812.35
5.4.250.0080.03912.35
5.4.240.0080.03912.35
5.4.230.0140.04512.34
5.4.220.0080.05012.34
5.4.210.0080.03912.34
5.4.200.0070.03812.34
5.4.190.0060.03812.34
5.4.180.0050.03712.34
5.4.170.0070.03512.35
5.4.160.0050.03712.35
5.4.150.0070.03512.34
5.4.140.0060.03712.03
5.4.130.0060.03612.01
5.4.120.0050.03811.97
5.4.110.0090.03311.97
5.4.100.0050.03611.96
5.4.90.0070.03711.96
5.4.80.0070.04411.96
5.4.70.0050.03911.96
5.4.60.0060.03811.96
5.4.50.0070.03411.96
5.4.40.0050.03611.95
5.4.30.0070.03711.95
5.4.20.0100.03611.95
5.4.10.0060.03711.95
5.4.00.0060.03611.45
5.3.290.0080.03912.80
5.3.280.0070.03812.71
5.3.270.0110.03612.72
5.3.260.0090.04012.72
5.3.250.0070.04012.72
5.3.240.0080.03612.72
5.3.230.0140.03312.71
5.3.220.0080.03512.68
5.3.210.0050.04012.68
5.3.200.0070.03612.68
5.3.190.0070.03712.68
5.3.180.0070.03612.67
5.3.170.0090.03512.67
5.3.160.0080.03412.67
5.3.150.0080.03512.68
5.3.140.0060.03612.66
5.3.130.0060.04412.66
5.3.120.0060.04612.66
5.3.110.0080.04212.66
5.3.100.0100.03412.11
5.3.90.0070.03812.08
5.3.80.0120.03612.07
5.3.70.0110.03812.07
5.3.60.0090.04312.07
5.3.50.0080.03812.00
5.3.40.0100.03712.00
5.3.30.0070.04211.95
5.3.20.0040.04211.73
5.3.10.0090.03611.69
5.3.00.0070.04611.68
5.2.170.0050.0369.18
5.2.160.0050.0369.18
5.2.150.0040.0339.18
5.2.140.0050.0379.18
5.2.130.0040.0349.14
5.2.120.0070.0319.14
5.2.110.0040.0319.15
5.2.100.0100.0309.14
5.2.90.0050.0289.14
5.2.80.0080.0329.14
5.2.70.0050.0359.14
5.2.60.0020.0349.09
5.2.50.0040.0319.05
5.2.40.0050.0299.03
5.2.30.0020.0349.01
5.2.20.0090.0269.00
5.2.10.0030.0298.92
5.2.00.0050.0288.79
5.1.60.0050.0268.07
5.1.50.0050.0308.06
5.1.40.0070.0278.04
5.1.30.0050.0268.39
5.1.20.0040.0268.42
5.1.10.0030.0278.14
5.1.00.0050.0258.14
5.0.50.0020.0226.62
5.0.40.0030.0216.48
5.0.30.0020.0326.29
5.0.20.0020.0216.27
5.0.10.0060.0236.24
5.0.00.0050.0306.23
4.4.90.0010.0174.77
4.4.80.0020.0164.76
4.4.70.0040.0144.75
4.4.60.0020.0164.76
4.4.50.0030.0154.77
4.4.40.0030.0254.71
4.4.30.0050.0154.76
4.4.20.0040.0144.84
4.4.10.0030.0154.84
4.4.00.0020.0254.76
4.3.110.0020.0174.67
4.3.100.0030.0144.66
4.3.90.0020.0174.63
4.3.80.0050.0234.58
4.3.70.0030.0144.63
4.3.60.0020.0154.63
4.3.50.0060.0124.62
4.3.40.0020.0244.54
4.3.30.0040.0143.28
4.3.20.0030.0153.26
4.3.10.0040.0143.22
4.3.00.0100.01713.92

preferences:
46.32 ms | 401 KiB | 5 Q