3v4l.org

run code in 300+ PHP versions simultaneously
<?php $records = array( array( 'id' => 2135, 'extra' => array( 'jelou' => 'hi', 'first_name' => 'Albert' ), ), array( 'id' => 2145, 'extra' => array( 'jelou' => 'hio', 'first_name' => 'Alberto' ), ), array( 'id' => 2155, 'extra' => array( 'jelou' => 'hia', 'first_name' => 'Alberta' ), ) ); print_r($records); $first_names = array_column($records, 'jelou'); print_r($first_names);

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.0070.01418.18
8.3.50.0090.01121.88
8.3.40.0070.01118.76
8.3.30.0080.00818.79
8.3.20.0080.00020.21
8.3.10.0030.00621.82
8.3.00.0040.00817.34
8.2.180.0070.00716.75
8.2.170.0110.00422.96
8.2.160.0090.00620.34
8.2.150.0000.00924.18
8.2.140.0090.00024.66
8.2.130.0080.00026.16
8.2.120.0040.00422.29
8.2.110.0030.00719.45
8.2.100.0070.00417.78
8.2.90.0000.00818.07
8.2.80.0000.00817.97
8.2.70.0050.00317.50
8.2.60.0000.00817.91
8.2.50.0030.00918.07
8.2.40.0070.00319.63
8.2.30.0050.00317.89
8.2.20.0040.00417.60
8.2.10.0000.00818.11
8.2.00.0030.00717.74
8.1.280.0140.00325.92
8.1.270.0000.00822.20
8.1.260.0040.00426.35
8.1.250.0050.00228.09
8.1.240.0030.00722.46
8.1.230.0070.00420.71
8.1.220.0040.00417.74
8.1.210.0040.00418.87
8.1.200.0080.00317.35
8.1.190.0000.00717.00
8.1.180.0030.00518.10
8.1.170.0040.00418.51
8.1.160.0000.00821.99
8.1.150.0000.00718.80
8.1.140.0050.00217.43
8.1.130.0000.00717.81
8.1.120.0030.00317.37
8.1.110.0000.00717.41
8.1.100.0000.00717.41
8.1.90.0000.00717.28
8.1.80.0070.00017.38
8.1.70.0030.00317.33
8.1.60.0030.00617.55
8.1.50.0060.00317.30
8.1.40.0030.00517.34
8.1.30.0030.00617.64
8.1.20.0040.00417.54
8.1.10.0030.00517.29
8.1.00.0040.00417.26
8.0.300.0030.00519.89
8.0.290.0050.00316.75
8.0.280.0030.00318.33
8.0.270.0040.00417.19
8.0.260.0000.00617.06
8.0.250.0070.00016.87
8.0.240.0030.00316.89
8.0.230.0000.00816.89
8.0.220.0040.00416.74
8.0.210.0030.00316.69
8.0.200.0000.00616.84
8.0.190.0000.00716.76
8.0.180.0070.00016.71
8.0.170.0000.00816.80
8.0.160.0050.00216.86
8.0.150.0040.00816.76
8.0.140.0070.00316.65
8.0.130.0070.00013.20
8.0.120.0020.00516.80
8.0.110.0070.00016.64
8.0.100.0040.00416.92
8.0.90.0030.00416.80
8.0.80.0090.00716.74
8.0.70.0040.00416.77
8.0.60.0000.00716.77
8.0.50.0040.00416.80
8.0.30.0060.01417.07
8.0.20.0110.01117.40
8.0.10.0050.00316.90
8.0.00.0050.01216.71
7.4.330.0000.00615.00
7.4.320.0030.00316.59
7.4.300.0060.00016.39
7.4.290.0000.00816.53
7.4.280.0080.00016.46
7.4.270.0000.00716.53
7.4.260.0000.00716.41
7.4.250.0030.00716.46
7.4.240.0030.00316.39
7.4.230.0000.00716.24
7.4.220.0060.01216.41
7.4.210.0040.01016.62
7.4.200.0030.00316.53
7.4.160.0070.01416.34
7.4.150.0120.00617.40
7.4.140.0110.01117.86
7.4.130.0090.00916.40
7.4.120.0080.01516.38
7.4.110.0090.01316.34
7.4.100.0120.00616.41
7.4.90.0090.00716.63
7.4.80.0130.00619.39
7.4.70.0110.00616.43
7.4.60.0070.01016.45
7.4.50.0080.00016.07
7.4.40.0030.01316.30
7.4.30.0080.00816.39
7.4.00.0060.00614.54
7.3.330.0000.00512.95
7.3.320.0050.00013.01
7.3.310.0050.00316.08
7.3.300.0030.00316.08
7.3.290.0070.00716.07
7.3.280.0100.00716.17
7.3.270.0140.00317.40
7.3.260.0090.00916.34
7.3.250.0080.00816.25
7.3.240.0070.01016.23
7.3.230.0130.00316.39
7.3.210.0100.00716.27
7.3.200.0030.01519.39
7.3.190.0090.00916.39
7.3.180.0070.01016.22
7.3.170.0030.01316.37
7.3.160.0060.01216.24
7.2.330.0070.01016.50
7.2.320.0100.00716.34
7.2.310.0060.01516.59
7.2.300.0060.00916.36
7.2.290.0090.00916.21
7.1.100.0030.01018.05
7.1.70.0030.01217.17
7.1.60.0100.01419.32
7.1.50.0090.00916.78
7.1.00.0030.07722.31
7.0.200.0030.00616.49
7.0.140.0000.07722.18
7.0.60.0200.04019.94
7.0.50.0030.08317.85
7.0.40.0170.05319.96
7.0.30.0470.07320.21
7.0.20.0300.03320.30
7.0.10.0070.04720.07
7.0.00.0070.07720.05
5.6.280.0030.07721.04
5.6.210.0030.04320.50
5.6.200.0000.04318.23
5.6.190.0030.04320.61
5.6.180.0300.07320.33
5.6.170.0270.06320.44
5.6.160.0000.05320.50
5.6.150.0000.05718.25
5.6.140.0130.07718.18
5.6.130.0100.03718.14
5.6.120.0130.03720.93
5.6.110.0070.06721.11
5.6.100.0100.04320.97
5.6.90.0130.08021.00
5.6.80.0070.07720.52
5.5.350.0030.08320.38
5.5.340.0100.06717.98
5.5.330.0270.03320.25
5.5.320.0430.07320.24
5.5.310.0230.03720.34
5.5.300.0100.07318.02
5.5.290.0130.07718.00
5.5.280.0100.07720.79
5.5.270.0100.04720.86
5.5.260.0030.04720.89
5.5.250.0100.06320.55
5.5.240.0130.03320.25
5.4.450.0630.06319.16
5.4.440.0530.06319.47
5.4.430.0070.06019.57
5.4.420.0770.00019.41
5.4.410.0630.00019.41
5.4.400.0800.00019.11
5.4.390.0770.00019.26
5.4.380.0670.00019.04
5.4.370.0630.00019.11
5.4.360.0630.00019.03
5.4.350.0670.00019.11
5.4.340.0110.03912.00
5.4.320.0100.05912.49
5.4.310.0130.05312.48
5.4.300.0090.04812.49
5.4.290.0160.04412.48
5.4.280.0100.05312.38
5.4.270.0120.04012.38
5.4.260.0090.03912.38
5.4.250.0090.04012.38
5.4.240.0060.04312.38
5.4.230.0090.04012.37
5.4.220.0050.04312.38
5.4.210.0100.04212.38
5.4.200.0120.04712.37
5.4.190.0070.04012.37
5.4.180.0080.03512.37
5.4.170.0110.03512.38
5.4.160.0050.04112.38
5.4.150.0070.05412.37
5.4.140.0100.04212.06
5.4.130.0200.06212.04
5.4.120.0140.04612.00
5.4.110.0080.05112.00
5.4.100.0090.05812.00
5.4.90.0130.03712.00
5.4.80.0060.04012.00
5.4.70.0050.03912.00
5.4.60.0160.06011.99
5.4.50.0100.03512.00
5.4.40.0110.03311.98
5.4.30.0100.04011.98
5.4.20.0060.04011.98
5.4.10.0100.03611.98
5.4.00.0110.03511.47
5.3.290.0120.06712.80
5.3.280.0080.04312.71
5.3.270.0070.04312.73
5.3.260.0090.05712.72
5.3.250.0150.05012.72
5.3.240.0130.05112.71
5.3.230.0110.05412.70
5.3.220.0100.05412.68
5.3.210.0110.05312.68
5.3.200.0060.04912.68
5.3.190.0100.03712.68
5.3.180.0090.04812.68
5.3.170.0100.03712.66
5.3.160.0060.04512.67
5.3.150.0160.04912.67
5.3.140.0130.04712.66
5.3.130.0070.04712.66
5.3.120.0130.04812.66
5.3.110.0120.04812.66
5.3.100.0060.04512.12
5.3.90.0070.04112.09
5.3.80.0070.04712.08
5.3.70.0090.03812.09
5.3.60.0070.04012.07
5.3.50.0090.03512.02
5.3.40.0090.03712.01
5.3.30.0110.03311.97
5.3.20.0090.04711.75
5.3.10.0080.05411.72
5.3.00.0080.04711.71
5.2.170.0050.0459.21
5.2.160.0070.0339.21
5.2.150.0080.0359.21
5.2.140.0100.0329.21
5.2.130.0040.0349.17
5.2.120.0070.0339.17
5.2.110.0060.0319.17
5.2.100.0050.0319.17
5.2.90.0050.0339.17
5.2.80.0080.0329.16
5.2.70.0050.0339.16
5.2.60.0100.0289.12
5.2.50.0060.0349.09
5.2.40.0040.0329.07
5.2.30.0090.0309.04
5.2.20.0080.0299.03
5.2.10.0090.0378.94
5.2.00.0110.0398.80
5.1.60.0080.0328.09
5.1.50.0080.0298.08
5.1.40.0090.0218.06
5.1.30.0040.0288.41
5.1.20.0050.0288.43
5.1.10.0050.0278.16
5.1.00.0020.0398.16
5.0.50.0040.0276.63
5.0.40.0130.0586.49
5.0.30.0030.0506.31
5.0.20.0070.0246.27
5.0.10.0070.0176.25
5.0.00.0060.0346.25
4.4.90.0060.0164.78
4.4.80.0180.0264.75
4.4.70.0090.0194.76
4.4.60.0080.0184.75
4.4.50.0050.0164.77
4.4.40.0030.0274.71
4.4.30.0060.0144.76
4.4.20.0040.0224.84
4.4.10.0070.0224.85
4.4.00.0060.0264.76
4.3.110.0050.0414.67
4.3.100.0020.0214.67
4.3.90.0020.0204.63
4.3.80.0030.0254.58
4.3.70.0040.0144.63
4.3.60.0030.0154.63
4.3.50.0050.0154.63
4.3.40.0010.0274.54
4.3.30.0050.0183.29
4.3.20.0020.0223.27
4.3.10.0020.0193.23
4.3.00.0000.0237.07

preferences:
42.09 ms | 401 KiB | 5 Q