3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(); $a[] = array('a' => 1); $a[] = array('a' => 2); $a[] = array('a' => 3); $column = 'a'; $res = array_map(function ($item) use ($column) {return is_object($item) ? $item->{$column} : $item[$column]; }, $a); var_dump($res);

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.0190.00318.40
8.3.50.0100.00316.69
8.3.40.0040.01118.91
8.3.30.0000.01418.71
8.3.20.0000.00720.16
8.3.10.0080.00021.85
8.3.00.0080.00020.21
8.2.180.0120.00318.30
8.2.170.0140.00722.96
8.2.160.0100.00720.48
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0030.00617.63
8.2.110.0040.00721.18
8.2.100.0040.00817.91
8.2.90.0080.00018.03
8.2.80.0090.00017.97
8.2.70.0060.00317.50
8.2.60.0080.00017.93
8.2.50.0090.00018.07
8.2.40.0000.00719.43
8.2.30.0050.00220.52
8.2.20.0040.00417.64
8.2.10.0070.00018.00
8.2.00.0000.00718.05
8.1.280.0120.00325.92
8.1.270.0030.00623.83
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0000.00922.66
8.1.230.0040.00821.10
8.1.220.0060.00317.79
8.1.210.0060.00318.91
8.1.200.0040.00417.48
8.1.190.0000.00817.36
8.1.180.0080.00018.10
8.1.170.0000.00818.63
8.1.160.0040.00422.04
8.1.150.0050.00318.90
8.1.140.0000.00717.48
8.1.130.0040.00417.59
8.1.120.0070.00017.51
8.1.110.0000.00717.38
8.1.100.0040.00417.41
8.1.90.0040.00417.46
8.1.80.0000.00717.47
8.1.70.0030.00317.45
8.1.60.0040.00417.49
8.1.50.0050.00317.52
8.1.40.0040.00417.55
8.1.30.0080.00017.67
8.1.20.0080.00017.49
8.1.10.0000.00817.55
8.1.00.0040.00417.54
8.0.300.0060.00319.91
8.0.290.0040.00416.63
8.0.280.0040.00418.52
8.0.270.0040.00416.77
8.0.260.0000.00817.19
8.0.250.0040.00416.88
8.0.240.0080.00016.93
8.0.230.0040.00416.97
8.0.220.0050.00216.87
8.0.210.0030.00516.80
8.0.200.0030.00316.96
8.0.190.0000.00816.96
8.0.180.0040.00416.82
8.0.170.0050.00316.84
8.0.160.0040.00316.86
8.0.150.0000.00716.71
8.0.140.0030.00316.86
8.0.130.0060.00313.33
8.0.120.0060.00316.86
8.0.110.0070.00016.92
8.0.100.0040.00416.77
8.0.90.0000.00716.91
8.0.80.0060.00916.84
8.0.70.0000.00716.88
8.0.60.0030.00316.80
8.0.50.0050.00316.75
8.0.30.0140.00617.18
8.0.20.0100.01117.40
8.0.10.0000.00716.85
8.0.00.0060.01116.68
7.4.330.0060.00015.08
7.4.320.0030.00316.63
7.4.300.0060.00016.57
7.4.290.0030.00316.48
7.4.280.0040.00416.51
7.4.270.0030.00316.59
7.4.260.0030.00316.47
7.4.250.0000.00816.57
7.4.240.0050.00216.44
7.4.230.0030.00316.52
7.4.220.0070.01016.61
7.4.210.0090.00616.68
7.4.200.0000.00716.45
7.4.160.0100.00616.69
7.4.150.0050.01317.40
7.4.140.0120.00817.86
7.4.130.0080.01016.49
7.4.120.0100.00916.64
7.4.110.0150.00916.49
7.4.100.0100.01016.44
7.4.90.0100.00616.39
7.4.80.0100.01619.39
7.4.70.0070.00916.42
7.4.60.0030.01216.51
7.4.50.0030.00516.75
7.4.40.0110.01116.49
7.4.30.0020.02116.64
7.4.00.0130.00315.09
7.3.330.0050.00013.15
7.3.320.0000.00613.24
7.3.310.0070.00016.35
7.3.300.0030.00316.33
7.3.290.0050.00816.31
7.3.280.0070.01116.31
7.3.270.0060.01017.40
7.3.260.0140.00316.55
7.3.250.0130.00416.32
7.3.240.0210.00316.58
7.3.230.0050.01116.45
7.3.210.0140.00716.60
7.3.200.0080.01316.32
7.3.190.0120.00916.38
7.3.180.0030.01316.47
7.3.170.0070.01016.50
7.3.160.0060.01516.53
7.3.10.0140.00316.27
7.3.00.0200.00316.69
7.2.330.0040.02016.53
7.2.320.0090.00916.79
7.2.310.0060.01216.80
7.2.300.0060.01016.72
7.2.290.0070.01116.69
7.2.130.0090.01216.81
7.2.120.0120.00616.93
7.2.110.0210.00016.58
7.2.100.0040.00916.61
7.2.90.0120.00416.72
7.2.80.0150.00316.65
7.2.70.0030.01316.80
7.2.60.0090.00816.94
7.2.50.0000.01516.66
7.2.40.0080.00416.66
7.2.30.0150.00616.79
7.2.20.0050.00516.78
7.2.10.0130.00316.88
7.2.00.0090.00617.00
7.1.250.0140.00015.71
7.1.200.0030.01015.95
7.1.100.0240.00617.29
7.1.70.0040.00416.93
7.1.60.0140.01019.11
7.1.50.0310.00735.01
7.1.00.0000.08022.54
7.0.200.0000.00716.75
7.0.60.0030.08319.88
7.0.50.0200.06717.90
7.0.40.0030.08320.25
7.0.30.0300.08020.23
7.0.20.0370.07720.12
7.0.10.0030.04320.16
7.0.00.0130.04720.24
5.6.280.0100.05721.08
5.6.210.0070.03720.70
5.6.200.0070.05718.17
5.6.190.0030.05320.65
5.6.180.0200.04020.55
5.6.170.0130.04320.48
5.6.160.0070.08720.57
5.6.150.0030.04018.25
5.6.140.0100.04718.12
5.6.130.0030.05318.25
5.6.120.0100.04721.12
5.6.110.0100.05021.04
5.6.100.0100.06320.98
5.6.90.0070.08321.02
5.6.80.0030.06020.51
5.5.350.3470.03020.53
5.5.340.0070.08717.96
5.5.330.0070.08020.43
5.5.320.0270.08020.25
5.5.310.0300.07720.36
5.5.300.0000.05317.97
5.5.290.0030.06717.94
5.5.280.0000.04320.73
5.5.270.0070.04720.73
5.5.260.0000.06720.73
5.5.250.0070.08020.62
5.5.240.0030.06320.16
5.4.450.1030.05319.68
5.4.440.1100.08319.61
5.4.430.1000.07319.67
5.4.420.0830.04719.58
5.4.410.0630.06719.20
5.4.400.0930.05319.13
5.4.390.0930.05319.13
5.4.380.1070.05719.26
5.4.370.1000.05019.13
5.4.360.0700.05719.13
5.4.350.0670.05319.01
5.4.340.1070.05019.07
5.4.320.1030.08018.96
5.4.310.1230.06719.29
5.4.300.1370.04719.25
5.4.290.0900.05718.83
5.4.280.1030.06019.10
5.4.270.1070.06719.19
5.4.260.0970.05019.22
5.4.250.0870.05719.13
5.4.240.1030.04019.27
5.4.230.0900.05319.16
5.4.220.1000.06319.00
5.4.210.0970.06719.27
5.4.200.0970.04719.12
5.4.190.0930.05019.04
5.4.180.1030.04019.12
5.4.170.0900.05718.94
5.4.160.0800.06019.11
5.4.150.0700.05318.98
5.4.140.0770.04316.27
5.4.130.0830.04016.36
5.4.120.0930.06316.43
5.4.110.0830.03716.57
5.4.100.0800.04316.61
5.4.90.0800.04016.65
5.4.80.0730.05016.57
5.4.70.0070.07016.54
5.4.60.0230.04016.54
5.4.50.0300.04016.53
5.4.40.0270.06316.43
5.4.30.0070.07016.55
5.4.20.0030.07016.30
5.4.10.0300.05716.32

preferences:
48.29 ms | 400 KiB | 5 Q