3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ ['attribute' => 1.5, 'value' => 'one & a half'], ['attribute' => 2, 'value' => 'two'], ['attribute' => 1, 'value' => 'one'], ]; var_export( array_column($array, 'value', 'attribute') );

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.4.130.0140.00618.56
8.4.120.0100.00923.95
8.4.110.0110.00817.79
8.4.100.0100.00817.70
8.4.90.0100.00917.73
8.4.80.0100.00719.37
8.4.70.0140.00717.97
8.4.60.0090.00818.68
8.4.50.0140.00819.32
8.4.40.0070.00317.80
8.4.30.0110.00818.52
8.4.20.0030.01317.82
8.4.10.0030.00623.96
8.3.260.0100.00616.34
8.3.250.0130.00518.76
8.3.240.0080.01117.13
8.3.230.0130.00516.57
8.3.220.0110.00716.64
8.3.210.0070.01116.65
8.3.200.0020.00716.84
8.3.190.0090.00517.09
8.3.180.0120.00718.62
8.3.170.0150.00319.00
8.3.160.0140.00418.46
8.3.150.0090.00917.24
8.3.140.0040.00420.58
8.3.130.0030.00518.49
8.3.120.0030.00620.49
8.3.110.0030.00620.94
8.3.100.0040.00416.54
8.3.90.0110.00726.77
8.3.80.0030.00618.30
8.3.70.0130.00916.63
8.3.60.0110.00416.61
8.3.50.0100.00720.18
8.3.40.0140.00422.11
8.3.30.0070.01318.75
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0060.00326.16
8.2.290.0070.00820.68
8.2.280.0050.00320.48
8.2.270.0120.00616.68
8.2.260.0000.00816.81
8.2.250.0050.00516.65
8.2.240.0090.00018.94
8.2.230.0060.00322.58
8.2.220.0040.00424.06
8.2.210.0070.00726.77
8.2.200.0030.00618.41
8.2.190.0090.00918.50
8.2.180.0070.00725.92
8.2.170.0110.01118.91
8.2.160.0000.01322.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0050.00226.16
8.2.120.0050.00326.16
8.2.110.0060.00322.20
8.2.100.0040.00817.90
8.2.90.0040.00419.21
8.2.80.0030.00617.97
8.2.70.0030.00617.38
8.2.60.0030.00517.80
8.2.50.0030.00618.07
8.2.40.0030.00517.97
8.2.30.0000.00817.99
8.2.20.0070.00019.11
8.2.10.0000.00817.98
8.2.00.0040.00419.17
8.1.330.0120.00622.13
8.1.320.0110.00818.25
8.1.310.0100.00716.63
8.1.300.0090.00018.06
8.1.290.0060.00330.84
8.1.280.0100.01025.92
8.1.270.0060.00324.66
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00320.59
8.1.230.0140.00017.70
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0040.00417.22
8.1.190.0040.00417.23
8.1.180.0050.00518.10
8.1.170.0070.00318.50
8.1.160.0000.00718.86
8.1.150.0050.00318.66
8.1.140.0000.00817.35
8.1.130.0030.00320.25
8.1.120.0070.00017.38
8.1.110.0130.00317.29
8.1.100.0130.00317.27
8.1.90.0000.01417.38
8.1.80.0100.00517.28
8.1.70.0070.00817.30
8.1.60.0090.00917.46
8.1.50.0120.00517.38
8.1.40.0080.00817.41
8.1.30.0130.00317.49
8.1.20.0150.00017.52
8.1.10.0080.00417.23
8.1.00.0070.00717.40
8.0.300.0000.00718.77
8.0.290.0040.00416.63
8.0.280.0000.00718.25
8.0.270.0000.00717.18
8.0.260.0050.00318.40
8.0.250.0030.00516.94
8.0.240.0100.00516.81
8.0.230.0040.00816.72
8.0.220.0000.01216.69
8.0.210.0110.00416.66
8.0.200.0150.00016.76
8.0.190.0070.00716.83
8.0.180.0120.00316.65
8.0.170.0100.00516.80
8.0.160.0110.00516.70
8.0.150.0120.00316.71
8.0.140.0150.00016.69
8.0.130.0120.00316.67
8.0.120.0090.00616.84
8.0.110.0100.00516.73
8.0.100.0130.00316.73
8.0.90.0080.00816.71
8.0.80.0100.00516.86
8.0.70.0070.00716.73
8.0.60.0060.00916.66
8.0.50.0070.00716.67
8.0.30.0100.00316.68
8.0.20.0090.00516.90
8.0.10.0150.00016.91
7.4.330.0000.00415.55
7.4.320.0140.00016.53
7.4.300.0160.00016.33
7.4.290.0140.00316.46
7.4.280.0110.00416.41
7.4.270.0090.00316.29
7.4.260.0120.00016.40
7.4.250.0060.00616.40
7.4.240.0110.00416.40
7.4.230.0100.00316.47
7.4.220.0070.00416.50
7.4.210.0050.00516.24
7.4.200.0080.00416.42
7.4.190.0140.00016.56
7.4.180.0090.00516.51
7.4.160.0090.00516.52
7.4.150.0070.00816.41
7.4.140.0110.00416.38
7.4.130.0100.00516.29
7.4.120.0110.00416.15
7.4.110.0060.00616.21
7.4.100.0070.00716.31
7.4.90.0150.00016.40
7.4.80.0110.00416.38
7.4.70.0080.00816.36
7.4.60.0150.00016.32
7.4.50.0110.00416.15
7.4.40.0070.00316.09
7.4.30.0030.00716.14
7.4.20.0050.00616.29
7.4.10.0040.00816.30
7.4.00.0100.00216.33

preferences:
28.54 ms | 403 KiB | 5 Q