3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [ 0 => [ "id" => 2, "title" => "Test", "alt_text" => 'This is test', ], 1 => [ "id" => 3, "title" => "Test1", "alt_text" => 'This is test1', ], 2 => [ "id" => 7, "title" => "Test2", "alt_text" => "This is test2", ], ]; $temp = array_column($arr, 'title', 'id'); echo $temp[2]; // will result Test

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.5.30.0130.00319.50
8.5.20.0110.00719.51
8.5.10.0120.00816.47
8.5.00.0160.00919.90
8.4.180.0110.01019.68
8.4.170.0110.01123.88
8.4.160.0130.00923.93
8.4.150.0020.00014.05
8.4.140.0110.00917.37
8.4.130.0110.01117.61
8.4.120.0140.00620.40
8.4.110.0110.00918.86
8.4.100.0150.00517.78
8.4.90.0120.00720.53
8.4.80.0120.00718.63
8.4.70.0090.01018.94
8.4.60.0100.01018.92
8.4.50.0070.00318.54
8.4.40.0100.01019.31
8.4.30.0100.01020.54
8.4.20.0040.01620.76
8.4.10.0030.00617.62
8.3.300.0120.01218.38
8.3.290.0170.00322.54
8.3.280.0140.00618.32
8.3.270.0100.00916.58
8.3.260.0100.00816.48
8.3.250.0100.01018.52
8.3.240.0020.00716.32
8.3.230.0110.00916.38
8.3.220.0060.00119.07
8.3.210.0080.00818.49
8.3.200.0070.00316.51
8.3.190.0060.00217.10
8.3.180.0090.00919.04
8.3.170.0120.00616.61
8.3.160.0040.01319.05
8.3.150.0120.00617.17
8.3.140.0120.00616.76
8.3.130.0000.00916.29
8.3.120.0070.01318.61
8.3.110.0090.00620.94
8.3.100.0060.00316.59
8.3.90.0110.00326.77
8.3.80.0090.00016.63
8.3.70.0070.01016.58
8.3.60.0090.00618.22
8.3.50.0090.00716.39
8.3.40.0110.01118.62
8.3.30.0070.00718.68
8.3.20.0040.00420.68
8.3.10.0050.00219.10
8.3.00.0030.00521.55
8.2.300.0150.00422.20
8.2.290.0110.00816.66
8.2.280.0090.01018.25
8.2.270.0100.00719.15
8.2.260.0040.00416.48
8.2.250.0060.00316.72
8.2.240.0040.00717.17
8.2.230.0090.00022.58
8.2.220.0040.00437.54
8.2.210.0110.00726.77
8.2.200.0090.00016.38
8.2.190.0150.00316.63
8.2.180.0100.00725.92
8.2.170.0070.01119.08
8.2.160.0100.00322.96
8.2.150.0000.01024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00419.45
8.2.110.0070.00320.92
8.2.100.0040.00817.89
8.2.90.0030.00617.75
8.2.80.0030.00617.97
8.2.70.0040.00417.91
8.2.60.0030.00618.34
8.2.50.0000.00818.10
8.2.40.0000.00819.52
8.2.30.0050.00319.25
8.2.20.0070.00018.10
8.2.10.0000.00818.74
8.2.00.0070.00019.47
8.1.340.0090.01117.63
8.1.330.0080.01121.99
8.1.320.0150.00517.54
8.1.310.0040.01118.47
8.1.300.0090.00618.64
8.1.290.0100.00030.84
8.1.280.0180.00325.92
8.1.270.0060.00622.22
8.1.260.0080.00026.35
8.1.250.0070.00728.09
8.1.240.0030.00619.12
8.1.230.0110.00018.99
8.1.220.0050.00317.78
8.1.210.0050.00318.77
8.1.200.0120.00017.23
8.1.190.0000.00817.23
8.1.180.0070.00018.10
8.1.170.0050.00318.66
8.1.160.0040.00418.86
8.1.150.0040.00418.82
8.1.140.0000.00718.77
8.1.130.0000.00719.93
8.1.120.0080.00017.44
8.1.110.0000.00917.27
8.1.100.0000.00817.43
8.1.90.0040.00417.40
8.1.80.0030.00517.35
8.1.70.0070.00017.39
8.1.60.0060.00317.55
8.1.50.0000.00817.48
8.1.40.0000.00817.34
8.1.30.0040.00417.58
8.1.20.0060.00317.51
8.1.10.0070.00017.54
8.1.00.0000.00817.39
8.0.300.0040.00819.32
8.0.290.0040.00416.75
8.0.280.0000.00718.35
8.0.270.0000.00717.24
8.0.260.0060.00020.23
8.0.250.0060.00316.93
8.0.240.0000.00616.82
8.0.230.0000.00816.92
8.0.220.0000.00716.82
8.0.210.0000.00716.64
8.0.200.0030.00316.87
8.0.190.0000.00716.88
8.0.180.0000.00716.81
8.0.170.0000.00816.79
8.0.160.0040.00416.70
8.0.150.0030.00316.71
8.0.140.0040.00416.76
8.0.130.0000.00613.28
8.0.120.0000.00716.71
8.0.110.0000.00816.79
8.0.100.0070.00016.69
8.0.90.0070.00016.75
8.0.80.0060.01016.70
8.0.70.0000.00716.61
8.0.60.0040.00416.78
8.0.50.0030.00316.60
8.0.30.0080.01216.89
8.0.20.0070.01416.93
8.0.10.0000.00816.96
8.0.00.0100.01016.56
7.4.330.0000.00515.55
7.4.320.0000.00616.50
7.4.300.0030.00316.44
7.4.290.0040.00416.52
7.4.280.0000.00816.56
7.4.270.0030.00316.46
7.4.260.0040.00416.44
7.4.250.0030.00316.29
7.4.240.0040.00416.53
7.4.230.0000.00716.45
7.4.220.0040.00416.42
7.4.210.0080.00916.47
7.4.200.0050.00216.51
7.4.160.0100.00816.44
7.4.140.0100.00617.86
7.4.130.0060.01216.42
7.4.120.0150.00316.46
7.4.110.0100.00716.27
7.4.100.0130.00916.32
7.4.90.0060.00916.41
7.4.80.0120.00619.39
7.4.70.0100.01016.54
7.4.60.0120.00716.32
7.4.50.0110.00816.46
7.4.40.0060.00916.36
7.4.00.0000.01314.80
7.3.330.0050.00013.04
7.3.320.0000.00612.88
7.3.310.0090.00016.04
7.3.300.0000.00716.14
7.3.290.0040.00416.21
7.3.280.0070.00716.25
7.3.260.0110.00616.42
7.3.240.0070.00816.37
7.3.230.0100.01116.51
7.3.210.0030.01316.24
7.3.200.0080.00816.59
7.3.190.0110.01216.21
7.3.180.0090.00616.51
7.3.170.0130.00916.46
7.3.160.0070.01316.24
7.3.50.0100.00514.88
7.3.40.0030.01314.63
7.3.30.0140.00014.58
7.3.20.0100.01314.76
7.3.10.0080.00814.61
7.3.00.0070.01414.68
7.2.330.0090.00916.47
7.2.320.0060.01216.77
7.2.310.0120.00316.59
7.2.300.0030.01716.62
7.2.290.0070.01316.80
7.2.180.0060.00615.05
7.2.170.0120.00014.90
7.2.160.0070.00614.82
7.2.150.0110.00715.11
7.2.140.0100.00514.93
7.2.130.0050.00914.77
7.2.120.0060.00915.11
7.2.110.0080.00814.74
7.2.100.0110.00615.04
7.2.90.0180.00914.82
7.2.80.0150.00415.04
7.2.70.0110.00614.99
7.2.60.0080.01214.83
7.2.50.0050.01014.70
7.2.40.0120.01214.89
7.2.30.0080.00515.14
7.2.20.0050.01014.91
7.2.10.0050.01115.11
7.2.00.0060.00614.96
7.1.280.0370.00713.83
7.1.270.0130.00013.76
7.1.260.0090.00414.15
7.1.250.0160.01013.98

preferences:
57.98 ms | 1403 KiB | 5 Q