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, 'last_name'));

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.0090.00918.31
8.3.50.0090.00722.05
8.3.40.0070.00718.50
8.3.30.0140.00018.84
8.3.20.0070.00020.04
8.3.10.0000.00820.44
8.3.00.0080.00019.26
8.2.180.0120.00416.75
8.2.170.0070.01422.96
8.2.160.0100.00320.53
8.2.150.0080.00024.18
8.2.140.0020.00524.66
8.2.130.0070.00026.16
8.2.120.0070.00021.02
8.2.110.0050.00520.53
8.2.100.0130.00317.62
8.2.90.0040.00419.14
8.2.80.0000.00817.97
8.2.70.0100.00017.63
8.2.60.0040.00417.80
8.2.50.0030.00618.07
8.2.40.0040.00418.03
8.2.30.0000.00719.53
8.2.20.0040.00417.69
8.2.10.0000.00818.04
8.2.00.0000.00817.54
8.1.280.0130.01025.92
8.1.270.0090.00022.09
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0100.00023.79
8.1.230.0080.00319.11
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0000.00917.23
8.1.190.0040.00417.09
8.1.180.0000.00718.10
8.1.170.0000.00818.35
8.1.160.0040.00421.95
8.1.150.0040.00418.77
8.1.140.0040.00417.25
8.1.130.0000.00717.76
8.1.120.0000.00717.40
8.1.110.0040.00417.24
8.1.100.0030.00317.44
8.1.90.0040.00417.40
8.1.80.0000.00717.41
8.1.70.0030.00317.34
8.1.60.0030.00617.51
8.1.50.0030.00617.47
8.1.40.0000.00817.48
8.1.30.0000.00917.52
8.1.20.0030.00617.60
8.1.10.0080.00017.39
8.1.00.0060.00317.39
8.0.300.0000.00818.77
8.0.290.0040.00416.75
8.0.280.0040.00418.27
8.0.270.0060.00317.26
8.0.260.0040.00417.10
8.0.250.0030.00316.89
8.0.240.0030.00316.75
8.0.230.0030.00316.86
8.0.220.0040.00416.69
8.0.210.0030.00616.77
8.0.200.0060.00016.76
8.0.190.0030.00316.75
8.0.180.0030.00316.81
8.0.170.0000.00816.85
8.0.160.0050.00316.87
8.0.150.0040.00416.70
8.0.140.0070.00016.79
8.0.130.0000.00613.30
8.0.120.0080.00016.82
8.0.110.0030.00516.71
8.0.100.0030.00516.75
8.0.90.0070.00016.72
8.0.80.0060.01016.84
8.0.70.0040.00416.64
8.0.60.0040.00416.82
8.0.50.0040.00416.88
8.0.30.0130.00716.95
8.0.20.0080.01117.40
8.0.10.0070.00016.91
8.0.00.0120.00516.70
7.4.330.0000.00615.02
7.4.320.0000.00716.43
7.4.300.0030.00316.33
7.4.290.0040.00416.44
7.4.280.0000.00716.41
7.4.270.0000.00616.58
7.4.260.0070.00016.32
7.4.250.0070.00016.49
7.4.240.0020.00516.42
7.4.230.0030.00316.45
7.4.220.0070.01016.47
7.4.210.0070.00716.59
7.4.200.0000.00716.50
7.4.160.0120.00416.17
7.4.150.0180.00017.40
7.4.140.0090.01117.86
7.4.130.0070.01016.37
7.4.120.0090.00716.42
7.4.110.0130.01016.34
7.4.100.0120.00616.35
7.4.90.0030.01316.40
7.4.80.0130.00819.39
7.4.70.0100.00716.40
7.4.60.0060.01316.35
7.4.50.0040.00416.51
7.4.40.0100.01016.64
7.4.30.0060.00916.46
7.4.00.0090.00914.79
7.3.330.0000.00613.11
7.3.320.0000.00613.04
7.3.310.0030.00316.21
7.3.300.0030.00315.98
7.3.290.0000.01516.08
7.3.280.0080.00716.16
7.3.270.0070.01017.40
7.3.260.0140.00416.56
7.3.250.0140.00616.29
7.3.240.0110.01116.36
7.3.230.0160.00616.41
7.3.210.0140.00716.25
7.3.200.0060.01419.39
7.3.190.0090.01216.27
7.3.180.0110.00716.14
7.3.170.0150.00616.27
7.3.160.0120.00616.07
7.2.330.0070.01016.30
7.2.320.0060.01016.25
7.2.310.0100.00916.49
7.2.300.0070.01016.38
7.2.290.0090.00616.53
7.2.00.0080.00419.21
7.1.100.0030.01018.13
7.1.70.0060.00317.04
7.1.60.0060.01619.61
7.1.50.0100.01016.92
7.1.00.0130.06322.30
7.0.200.0050.00516.63
7.0.140.0000.07321.95
7.0.60.0130.08019.78
7.0.50.0030.04017.66
7.0.40.0170.06719.90
7.0.30.0500.07020.18
7.0.20.0330.02320.09
7.0.10.0070.08720.04
7.0.00.0070.08720.20
5.6.280.0100.06320.82
5.6.210.0170.06720.67
5.6.200.0030.05718.09
5.6.190.0070.04020.59
5.6.180.0570.04720.57
5.6.170.0200.05320.45
5.6.160.0030.07320.48
5.6.150.0130.09718.19
5.6.140.0100.07718.11
5.6.130.0100.04318.07
5.6.120.0100.08020.80
5.6.110.0170.06320.89
5.6.100.0000.06021.00
5.6.90.0170.07021.01
5.6.80.0030.07720.30
5.5.350.0130.08720.34
5.5.340.0130.07317.95
5.5.330.0030.04720.43
5.5.320.0070.06020.13
5.5.310.0100.04720.29
5.5.300.0000.04317.91
5.5.290.0070.06317.96
5.5.280.0070.06320.77
5.5.270.0070.07320.78
5.5.260.0070.08020.63
5.5.250.0030.08320.68
5.5.240.0100.08320.15
5.4.450.0300.03319.58
5.4.440.0130.04319.41
5.4.430.0300.07019.51
5.4.420.0130.05719.51
5.4.410.0070.06019.02
5.4.400.0630.04719.21
5.4.390.0830.04719.34
5.4.380.0270.05018.50
5.4.370.0200.06318.71
5.4.360.0270.05318.55
5.4.350.0400.05718.55
5.4.340.0330.05018.66
5.4.320.0020.04112.46
5.4.310.0040.04012.45
5.4.300.0040.03812.45
5.4.290.0100.03812.45
5.4.280.0070.03512.35
5.4.270.0080.03812.35
5.4.260.0080.04312.35
5.4.250.0050.04112.35
5.4.240.0090.03312.35
5.4.230.0070.03712.34
5.4.220.0020.04112.34
5.4.210.0050.03712.34
5.4.200.0080.03612.34
5.4.190.0080.03512.34
5.4.180.0070.03712.34
5.4.170.0060.03712.35
5.4.160.0040.03912.35
5.4.150.0090.03412.34
5.4.140.0070.03812.03
5.4.130.0060.03712.02
5.4.120.0090.04011.97
5.4.110.0140.03111.97
5.4.100.0090.03711.97
5.4.90.0040.04311.96
5.4.80.0060.03811.96
5.4.70.0060.03411.96
5.4.60.0040.03711.96
5.4.50.0070.03511.96
5.4.40.0070.03411.95
5.4.30.0060.03611.95
5.4.20.0070.03411.95
5.4.10.0060.03511.95
5.4.00.0070.03511.44
5.3.290.0060.04012.80
5.3.280.0060.03812.71
5.3.270.0090.04312.73
5.3.260.0060.03912.72
5.3.250.0050.04712.72
5.3.240.0100.04812.72
5.3.230.0080.03812.71
5.3.220.0090.03512.68
5.3.210.0070.03812.68
5.3.200.0090.04012.68
5.3.190.0100.04112.68
5.3.180.0070.03512.68
5.3.170.0110.03712.67
5.3.160.0080.03712.67
5.3.150.0080.04512.68
5.3.140.0070.03712.66
5.3.130.0060.04112.66
5.3.120.0090.03912.66
5.3.110.0070.03812.66
5.3.100.0070.03612.11
5.3.90.0060.03612.08
5.3.80.0060.03812.07
5.3.70.0100.03812.07
5.3.60.0060.03712.07
5.3.50.0040.03712.00
5.3.40.0100.03312.00
5.3.30.0070.03511.94
5.3.20.0070.03511.73
5.3.10.0070.03511.70
5.3.00.0110.04911.68
5.2.170.0060.0319.18
5.2.160.0080.0269.18
5.2.150.0110.0509.18
5.2.140.0050.0349.18
5.2.130.0050.0339.14
5.2.120.0050.0349.14
5.2.110.0060.0309.14
5.2.100.0060.0339.14
5.2.90.0050.0289.14
5.2.80.0050.0309.14
5.2.70.0050.0309.14
5.2.60.0040.0309.09
5.2.50.0040.0309.06
5.2.40.0040.0299.04
5.2.30.0060.0289.01
5.2.20.0050.0289.00
5.2.10.0070.0268.93
5.2.00.0060.0278.79
5.1.60.0050.0228.07
5.1.50.0040.0248.06
5.1.40.0060.0228.05
5.1.30.0020.0288.39
5.1.20.0040.0268.42
5.1.10.0030.0268.14
5.1.00.0020.0278.14
5.0.50.0020.0226.62
5.0.40.0030.0196.48
5.0.30.0070.0276.29
5.0.20.0060.0176.26
5.0.10.0040.0196.24
5.0.00.0030.0316.23
4.4.90.0040.0154.78
4.4.80.0030.0174.76
4.4.70.0010.0174.76
4.4.60.0010.0174.75
4.4.50.0030.0164.77
4.4.40.0030.0334.71
4.4.30.0040.0154.76
4.4.20.0020.0234.84
4.4.10.0010.0224.85
4.4.00.0030.0274.75
4.3.110.0040.0154.67
4.3.100.0030.0154.66
4.3.90.0030.0144.64
4.3.80.0050.0224.59
4.3.70.0010.0164.63
4.3.60.0040.0144.63
4.3.50.0040.0144.63
4.3.40.0030.0244.54
4.3.30.0050.0153.28
4.3.20.0010.0173.25
4.3.10.0030.0173.22
4.3.00.0100.01313.92

preferences:
52.6 ms | 401 KiB | 5 Q