3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array(array("lol"=>"lol1", "text"=>"Haha"), array("lol"=>"lol2", "text"=>"Heheh")); $assoc_arr = array_reduce($arr, function ($result, $item) { $result[$item["lol"]][] =$item; return $result; }, array()); var_dump($assoc_arr);

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.31
8.3.50.0120.00921.27
8.3.40.0110.00418.67
8.3.30.0070.00720.25
8.3.20.0070.00718.73
8.3.10.0040.00419.21
8.3.00.0080.00019.54
8.2.180.0150.00316.38
8.2.170.0070.00722.96
8.2.160.0070.00720.39
8.2.150.0070.00724.18
8.2.140.0070.00024.66
8.2.130.0080.00026.16
8.2.120.0000.00819.83
8.2.110.0160.00622.07
8.2.100.0000.01217.84
8.2.90.0040.00417.88
8.2.80.0060.00318.96
8.2.70.0090.00017.93
8.2.60.0040.00418.22
8.2.50.0050.00318.10
8.2.40.0100.00519.17
8.2.30.0050.00321.08
8.2.20.0040.00417.70
8.2.10.0000.00817.73
8.2.00.0000.01017.61
8.1.280.0120.00425.92
8.1.270.0050.00323.99
8.1.260.0110.00426.35
8.1.250.0000.00828.09
8.1.240.0030.00719.05
8.1.230.0120.00017.83
8.1.220.0060.00317.74
8.1.210.0000.00818.77
8.1.200.0040.00417.23
8.1.190.0040.00417.41
8.1.180.0000.00818.10
8.1.170.0050.00318.65
8.1.160.0000.00718.84
8.1.150.0070.00018.85
8.1.140.0000.00817.37
8.1.130.0030.00317.71
8.1.120.0000.00717.51
8.1.110.0000.00717.43
8.1.100.0050.00217.36
8.1.90.0040.00417.38
8.1.80.0030.00517.28
8.1.70.0030.00317.36
8.1.60.0040.00417.48
8.1.50.0000.00717.33
8.1.40.0040.00417.42
8.1.30.0050.00217.54
8.1.20.0050.00317.63
8.1.10.0060.00317.50
8.1.00.0080.00317.33
8.0.300.0080.00018.77
8.0.290.0000.00816.75
8.0.280.0000.00718.36
8.0.270.0000.00717.25
8.0.260.0000.00616.79
8.0.250.0000.00716.76
8.0.240.0070.00016.91
8.0.230.0070.00016.80
8.0.220.0030.00316.71
8.0.210.0070.00316.86
8.0.200.0040.00416.86
8.0.190.0030.00616.83
8.0.180.0040.00416.84
8.0.170.0000.00716.77
8.0.160.0070.00016.81
8.0.150.0000.00716.73
8.0.140.0000.00716.73
8.0.130.0050.00313.41
8.0.120.0040.00416.85
8.0.110.0040.00416.82
8.0.100.0030.00316.77
8.0.90.0040.00416.77
8.0.80.0150.00016.80
8.0.70.0000.00716.71
8.0.60.0040.00416.99
8.0.50.0030.00616.69
8.0.30.0150.00917.12
8.0.20.0100.00917.40
8.0.10.0040.00416.88
8.0.00.0100.00816.70
7.4.330.0030.00316.92
7.4.320.0030.00316.52
7.4.300.0050.00316.48
7.4.290.0070.00016.47
7.4.280.0000.00716.59
7.4.270.0040.00416.59
7.4.260.0030.00313.31
7.4.250.0030.00516.47
7.4.240.0040.00416.59
7.4.230.0000.00716.38
7.4.220.0000.02016.38
7.4.210.0050.01016.58
7.4.200.0000.00716.52
7.4.190.0000.00716.35
7.4.160.0090.00616.48
7.4.150.0060.01317.40
7.4.140.0100.00817.86
7.4.130.0080.01116.38
7.4.120.0110.00516.45
7.4.110.0090.01216.57
7.4.100.0040.01416.50
7.4.90.0030.01516.35
7.4.80.0080.01419.39
7.4.70.0060.01116.39
7.4.60.0100.00916.59
7.4.50.0050.00016.38
7.4.40.0060.00322.77
7.4.30.0090.00916.39
7.4.00.0070.00715.11
7.3.330.0050.00013.14
7.3.320.0030.00313.35
7.3.310.0000.00716.22
7.3.300.0000.00716.24
7.3.290.0070.00716.37
7.3.280.0070.00916.38
7.3.270.0080.01117.40
7.3.260.0080.01418.24
7.3.250.0180.00116.38
7.3.240.0030.01416.43
7.3.230.0070.01016.40
7.3.210.0090.00916.60
7.3.200.0060.01219.39
7.3.190.0090.01516.39
7.3.180.0040.01116.54
7.3.170.0120.00616.34
7.3.160.0070.01316.37
7.3.120.0060.00914.71
7.3.10.0030.01316.64
7.3.00.0130.00016.73
7.2.330.0100.01416.62
7.2.320.0030.01416.39
7.2.310.0060.01316.41
7.2.300.0080.00816.75
7.2.290.0150.00616.38
7.2.130.0050.00516.90
7.2.120.0060.00616.64
7.2.110.0040.01216.78
7.2.100.0050.00516.76
7.2.90.0000.01316.94
7.2.80.0120.00616.81
7.2.70.0060.00316.86
7.2.60.0040.01116.61
7.2.50.0070.00716.91
7.2.40.0060.00617.00
7.2.30.0040.00816.92
7.2.20.0040.00716.73
7.2.10.0040.00716.98
7.2.00.0050.00818.13
7.1.250.0090.00015.82
7.1.100.0030.01018.37
7.1.70.0030.00717.09
7.1.60.0040.00717.35
7.1.50.0070.01416.70
7.1.40.0060.00916.74
7.1.30.0040.01116.46
7.1.20.0030.01216.98
7.1.10.0030.00616.68
7.1.00.0080.00016.86
7.0.200.0000.00716.82
7.0.190.0000.01116.80
7.0.180.0070.01016.06
7.0.170.0030.01416.30
7.0.160.0000.01516.24
7.0.150.0030.00616.49
7.0.140.0000.00816.30
7.0.130.0050.00316.63
7.0.120.0000.00816.60
7.0.110.0040.00416.36
7.0.100.0070.00416.26
7.0.90.0000.01016.40
7.0.80.0040.00416.45
7.0.70.0030.00716.41
7.0.60.0070.00716.14
7.0.50.0030.00916.38
7.0.40.0000.00915.00
7.0.30.0000.00815.00
7.0.20.0040.00415.00
7.0.10.0000.00715.00
7.0.00.0000.00815.00
5.6.300.0130.04020.91
5.6.290.0030.04120.65
5.6.280.0030.07120.76
5.6.270.0000.05020.94
5.6.260.0030.04420.86
5.6.250.0130.03921.02
5.6.240.0070.04320.96
5.6.230.0030.04221.04
5.6.220.0100.03320.79
5.6.210.0100.06321.07
5.6.200.0030.04520.82
5.6.190.0070.04020.98
5.6.180.0070.05420.98
5.6.170.0030.04420.91
5.6.160.0030.04020.99
5.6.150.0070.05420.86
5.6.140.0000.04920.80
5.6.130.0240.03020.86
5.6.120.0100.03320.82
5.6.110.0030.07520.96
5.6.100.0000.04320.84
5.6.90.0160.04320.98
5.6.80.0070.04920.39
5.6.70.0030.03920.28
5.6.60.0000.04620.28
5.6.50.0000.04220.40
5.6.40.0000.05020.09
5.6.30.0070.03520.17
5.6.20.0130.03620.16
5.6.10.0070.05920.29
5.6.00.0070.05320.27
5.5.380.0030.03817.54
5.5.370.0000.08017.65
5.5.360.0030.05117.62
5.5.350.0070.03617.61
5.5.340.0030.05617.98
5.5.330.0030.04118.05
5.5.320.0030.04418.10
5.5.310.0000.04717.74
5.5.300.0060.03518.08
5.5.290.0000.05117.98
5.5.280.0000.04218.09
5.5.270.0070.04317.99
5.5.260.0070.08317.84
5.5.250.0000.04617.64
5.5.240.0000.04217.38
5.5.230.0030.04317.48
5.5.220.0070.03417.53
5.5.210.0030.03717.38
5.5.200.0030.04317.51
5.5.190.0030.03917.05
5.5.180.0030.04317.45
5.5.160.0000.04017.18
5.5.150.0000.04517.33
5.5.140.0030.03817.16
5.5.130.0070.03717.50
5.5.120.0060.03517.46
5.5.110.0060.03517.34
5.5.100.0100.07617.27
5.5.90.0030.07516.95
5.5.80.0070.06217.26
5.5.70.0030.04417.30
5.5.60.0030.03617.30
5.5.50.0100.07217.34
5.5.40.0040.04217.25
5.5.30.0030.03717.39
5.5.20.0000.04317.29
5.5.10.0000.04117.25
5.5.00.0030.03717.32
5.4.450.0000.04919.53
5.4.440.0100.03319.21
5.4.430.0030.03819.50
5.4.420.0030.04519.28
5.4.410.0000.04119.13
5.4.400.0090.03119.00
5.4.390.0030.04119.13
5.4.380.0030.03719.16
5.4.370.0030.03618.94
5.4.360.0000.05819.20
5.4.350.0100.05519.05
5.4.340.0030.04818.94
5.4.320.0100.07318.97
5.4.310.0000.04219.18
5.4.300.0070.03418.95
5.4.290.0100.03318.97
5.4.280.0000.04718.96
5.4.270.0000.04019.14
5.4.260.0070.06319.03
5.4.250.0030.04218.91
5.4.240.0030.04719.12
5.4.230.0030.03919.13
5.4.220.0030.03719.07
5.4.210.0000.05118.95
5.4.200.0070.03719.11
5.4.190.0000.04018.97
5.4.180.0030.03919.04
5.4.170.0030.03718.90
5.4.160.0030.03819.03
5.4.150.0000.04118.96
5.4.140.0160.03516.68
5.4.130.0000.04116.66
5.4.120.0030.04216.59
5.4.110.0060.03216.48
5.4.100.0030.03616.70
5.4.90.0210.03116.76
5.4.80.0000.04116.71
5.4.70.0030.03616.75
5.4.60.0060.03216.60
5.4.50.0030.03716.48
5.4.40.0030.04116.57
5.4.30.0030.03816.67
5.4.20.0040.03616.46
5.4.10.0060.03616.45
5.4.00.0070.03416.13
5.3.290.0030.04315.00
5.3.280.0000.04415.00
5.3.270.0000.04115.00
5.3.260.0070.03315.00
5.3.250.0000.04115.00
5.3.240.0030.03915.00
5.3.230.0030.03915.00
5.3.220.0100.04815.00
5.3.210.0130.03715.00
5.3.200.0060.03515.00
5.3.190.0060.03915.00
5.3.180.0100.03315.00
5.3.170.0070.03615.00
5.3.160.0040.04615.00
5.3.150.0030.03815.00
5.3.140.0030.04315.00
5.3.130.0070.03915.00
5.3.120.0070.03815.00
5.3.110.0040.03915.00
5.3.100.0040.03615.00
5.3.90.0030.03615.00
5.3.80.0000.04015.00
5.3.70.0030.03815.00
5.3.60.0060.03415.00
5.3.50.0070.03315.00
5.3.40.0030.03715.00
5.3.30.0030.03515.00
5.3.20.0000.03815.00
5.3.10.0030.03815.00
5.3.00.0000.04015.00
5.2.170.0030.03615.00
5.2.160.0000.03015.00
5.2.150.0000.03115.00
5.2.140.0000.03815.00
5.2.130.0030.03315.00
5.2.120.0000.03415.00
5.2.110.0030.02715.00
5.2.100.0170.03415.00
5.2.90.0030.03015.00
5.2.80.0000.03415.00
5.2.70.0000.03215.00
5.2.60.0000.03015.00
5.2.50.0000.03015.00
5.2.40.0070.02415.00
5.2.30.0030.03215.00
5.2.20.0030.02715.00
5.2.10.0030.02715.00
5.2.00.0030.02815.00
5.1.60.0060.02215.00
5.1.50.0000.02615.00
5.1.40.0000.02515.00
5.1.30.0030.02615.00
5.1.20.0030.02715.00
5.1.10.0060.02415.00
5.1.00.0030.02415.00
5.0.50.0000.02215.00
5.0.40.0070.03215.00
5.0.30.0100.03715.00
5.0.20.0030.01915.00
5.0.10.0000.02615.00
5.0.00.0000.03415.00
4.4.90.0030.01515.00
4.4.80.0060.00915.00
4.4.70.0000.02015.00
4.4.60.0000.01615.00
4.4.50.0030.01615.00
4.4.40.0030.04015.00
4.4.30.0030.02015.00
4.4.20.0060.01215.00
4.4.10.0000.02115.00
4.4.00.0000.02915.00
4.3.110.0000.02315.00
4.3.100.0100.00715.00
4.3.90.0030.01715.00
4.3.80.0000.02915.00
4.3.70.0000.02015.00
4.3.60.0060.01515.00
4.3.50.0000.01715.00
4.3.40.0030.02415.00
4.3.30.0030.02215.00
4.3.20.0000.02315.00
4.3.10.0000.01815.00
4.3.00.0030.01615.00

preferences:
46.56 ms | 400 KiB | 5 Q