3v4l.org

run code in 300+ PHP versions simultaneously
<?php $demo = [ (object) ['key' => 'a', 'xxx' => 'xxx'], (object) ['key' => 'b', 'xxx' => 'xxx'], (object) ['key' => 'c', 'xxx' => 'xxx'] ]; $result = array_combine(array_column($demo, 'key'), $demo); print_r($result);

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.0120.00618.86
8.5.20.0110.01219.54
8.5.10.0090.00820.16
8.5.00.0170.00820.14
8.4.180.0120.00919.64
8.4.170.0160.00623.85
8.4.160.0140.00919.70
8.4.150.0070.00516.88
8.4.140.0150.00717.66
8.4.130.0130.00718.58
8.4.120.0110.00924.21
8.4.110.0120.00918.83
8.4.100.0120.00917.71
8.4.90.0130.00720.38
8.4.80.0070.01224.39
8.4.70.0090.00818.73
8.4.60.0130.00920.50
8.4.50.0050.00418.76
8.4.40.0280.00817.72
8.4.30.0220.01319.07
8.4.20.0300.00318.34
8.4.10.0130.00317.70
8.3.300.0160.00320.66
8.3.290.0140.00818.31
8.3.280.0090.01018.31
8.3.270.0110.00916.25
8.3.260.0050.00316.48
8.3.250.0090.01018.64
8.3.240.0150.00617.20
8.3.230.0130.00716.74
8.3.220.0110.00618.96
8.3.210.0070.01118.34
8.3.200.0050.00416.64
8.3.190.0060.00918.59
8.3.180.0110.00818.85
8.3.170.0100.00516.80
8.3.160.0160.00717.30
8.3.150.0150.00416.63
8.3.140.0210.00616.50
8.3.130.0190.00316.50
8.3.120.0160.00217.90
8.3.110.0070.00517.37
8.3.100.0120.00316.58
8.3.90.0220.00821.56
8.3.80.0170.01016.75
8.3.70.0210.00716.61
8.3.60.0270.00416.25
8.3.50.0270.00617.36
8.3.40.0220.00318.90
8.3.30.0200.00517.97
8.3.20.0180.00720.61
8.3.10.0200.00321.02
8.3.00.0120.00321.73
8.2.300.0110.00818.70
8.2.290.0120.00716.95
8.2.280.0110.00818.62
8.2.270.0160.00716.56
8.2.260.0180.01016.91
8.2.250.0200.00416.61
8.2.240.0170.00717.46
8.2.230.0150.00718.65
8.2.220.0200.00520.24
8.2.210.0190.00521.55
8.2.200.0100.00716.44
8.2.190.0130.00416.58
8.2.180.0170.00721.38
8.2.170.0200.00618.26
8.2.160.0210.00620.28
8.2.150.0220.00521.64
8.2.140.0230.00521.12
8.2.130.0270.00121.83
8.2.120.0200.00517.57
8.2.110.0170.00819.61
8.2.100.0180.00717.80
8.2.90.0180.00617.88
8.2.80.0190.00518.24
8.2.70.0170.00517.76
8.2.60.0170.00417.67
8.2.50.0170.00617.77
8.2.40.0170.00518.29
8.2.30.0200.00417.78
8.2.20.0170.00518.98
8.2.10.0210.00117.56
8.2.00.0150.00718.34
8.1.340.0110.00921.69
8.1.330.0120.00721.95
8.1.320.0090.01017.62
8.1.310.0220.00316.35
8.1.300.0190.00715.98
8.1.290.0190.00323.55
8.1.280.0190.00821.12
8.1.270.0170.00520.58
8.1.260.0200.00621.82
8.1.250.0190.00722.73
8.1.240.0170.00520.59
8.1.230.0210.00418.13
8.1.220.0160.00517.50
8.1.210.0190.00217.87
8.1.200.0140.00817.24
8.1.190.0200.00217.17
8.1.180.0140.00717.54
8.1.170.0170.00517.88
8.1.160.0200.00117.99
8.1.150.0160.00817.80
8.1.140.0130.00917.21
8.1.130.0120.00818.04
8.1.120.0150.00617.30
8.1.110.0160.00517.26
8.1.100.0140.00417.31
8.1.90.0130.00317.30
8.1.80.0120.00617.36
8.1.70.0130.00417.38
8.1.60.0090.00817.50
8.1.50.0130.00517.43
8.1.40.0150.00617.38
8.1.30.0150.00617.56
8.1.20.0150.00617.57
8.1.10.0150.00617.38
8.1.00.0180.00717.27
8.0.300.0200.00219.27
8.0.290.0200.00416.65
8.0.280.0170.00517.37
8.0.270.0160.00217.32
8.0.260.0100.00717.52
8.0.250.0110.00616.86
8.0.240.0080.00916.79
8.0.230.0130.00916.81
8.0.220.0150.00316.82
8.0.210.0140.00516.80
8.0.200.0120.00616.88
8.0.190.0110.00916.84
8.0.180.0150.00516.80
8.0.170.0130.00616.86
8.0.160.0140.00516.88
8.0.150.0160.00216.79
8.0.140.0130.00516.77
8.0.130.0150.00416.75
8.0.120.0150.00516.76
8.0.110.0120.00616.80
8.0.100.0150.00416.74
8.0.90.0140.00516.74
8.0.80.0120.00516.76
8.0.70.0130.00416.69
8.0.60.0130.00516.77
8.0.50.0100.00816.81
8.0.30.0130.00416.72
8.0.20.0130.00516.78
8.0.10.0120.00516.91
7.4.330.0150.00515.91
7.4.320.0100.00616.45
7.4.300.0120.00516.36
7.4.290.0140.00316.42
7.4.280.0130.00416.38
7.4.270.0110.00516.36
7.4.260.0140.00316.33
7.4.250.0110.00616.46
7.4.240.0100.00716.47
7.4.230.0090.00816.46
7.4.220.0080.00716.32
7.4.210.0110.00616.36
7.4.200.0140.00316.34
7.4.190.0110.00516.37
7.4.180.0140.00516.39
7.4.160.0130.00516.47
7.4.150.0110.00516.33
7.4.140.0110.00516.17
7.4.130.0100.00616.27
7.4.120.0110.00416.15
7.4.110.0120.00416.32
7.4.100.0130.00316.29
7.4.90.0080.00716.33
7.4.80.0090.00416.17
7.4.70.0100.00516.32
7.4.60.0090.00716.12
7.4.50.0120.00416.25
7.4.40.0100.00616.28
7.4.30.0080.00916.32
7.4.20.0110.00616.20
7.4.10.0110.00516.24
7.4.00.0120.00416.32

preferences:
50 ms | 1301 KiB | 5 Q