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["lol"]; 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.0040.01218.43
8.3.50.0130.00716.74
8.3.40.0160.00318.62
8.3.30.0040.01120.38
8.3.20.0120.00418.79
8.3.10.0040.00419.34
8.3.00.0060.00319.78
8.2.180.0070.01316.63
8.2.170.0090.00622.96
8.2.160.0030.01020.38
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00019.77
8.2.110.0000.00920.52
8.2.100.0080.00417.91
8.2.90.0090.00019.18
8.2.80.0040.00717.97
8.2.70.0060.00317.50
8.2.60.0050.00318.05
8.2.50.0030.00518.07
8.2.40.0000.00918.34
8.2.30.0040.00419.32
8.2.20.0000.00817.63
8.2.10.0030.00517.73
8.2.00.0060.00317.72
8.1.270.0000.00823.99
8.1.260.0030.00626.35
8.1.250.0080.00028.09
8.1.240.0100.00320.76
8.1.230.0040.00820.91
8.1.220.0030.00618.77
8.1.210.0030.00518.91
8.1.200.0060.00317.38
8.1.190.0080.00017.52
8.1.180.0040.00418.10
8.1.170.0000.00818.66
8.1.160.0040.00418.88
8.1.150.0090.00018.64
8.1.140.0070.00017.45
8.1.130.0050.00217.74
8.1.120.0030.00417.50
8.1.110.0040.00417.42
8.1.100.0000.00717.34
8.1.90.0050.00217.46
8.1.80.0070.00017.48
8.1.70.0030.00317.35
8.1.60.0000.00917.59
8.1.50.0070.00017.53
8.1.40.0080.00017.54
8.1.30.0040.00417.66
8.1.20.0030.00517.68
8.1.10.0060.00317.42
8.1.00.0000.00917.44
8.0.300.0070.00020.04
8.0.290.0030.00617.05
8.0.280.0000.00718.31
8.0.270.0000.00817.20
8.0.260.0000.00716.82
8.0.250.0030.00516.83
8.0.240.0020.00516.91
8.0.230.0080.00016.80
8.0.220.0040.00416.82
8.0.210.0090.00016.76
8.0.200.0050.00316.87
8.0.190.0000.00816.95
8.0.180.0040.00416.87
8.0.170.0070.00016.84
8.0.160.0000.00716.86
8.0.150.0050.00216.92
8.0.140.0000.00716.84
8.0.130.0070.00013.32
8.0.120.0090.00016.84
8.0.110.0040.00416.76
8.0.100.0000.00716.87
8.0.90.0000.00716.75
8.0.80.0100.00616.89
8.0.70.0000.00716.89
8.0.60.0000.00716.88
8.0.50.0040.00417.01
8.0.30.0110.00817.14
8.0.20.0090.00917.40
8.0.10.0000.00717.07
8.0.00.0080.01016.76
7.4.330.0020.00216.67
7.4.320.0030.00316.63
7.4.300.0030.00616.50
7.4.290.0070.00016.61
7.4.280.0000.00716.62
7.4.270.0000.00716.64
7.4.260.0030.00313.22
7.4.250.0060.00316.39
7.4.240.0000.00716.61
7.4.230.0030.00316.60
7.4.220.0060.01316.49
7.4.210.0050.01116.54
7.4.200.0000.00716.43
7.4.190.0000.00816.48
7.4.160.0070.01016.47
7.4.150.0090.00917.40
7.4.140.0160.00217.86
7.4.130.0080.01016.45
7.4.120.0060.01016.41
7.4.110.0090.01216.55
7.4.100.0100.01316.54
7.4.90.0140.01116.50
7.4.80.0130.01019.39
7.4.70.0060.00916.42
7.4.60.0070.01116.50
7.4.50.0030.00316.39
7.4.40.0030.00722.77
7.4.30.0090.00916.35
7.4.00.0090.00614.98
7.3.330.0050.00013.23
7.3.320.0020.00213.35
7.3.310.0080.00016.18
7.3.300.0000.00716.35
7.3.290.0110.00716.38
7.3.280.0080.00916.27
7.3.270.0090.00917.40
7.3.260.0100.01318.24
7.3.250.0130.00816.44
7.3.240.0100.00716.59
7.3.230.0080.00816.39
7.3.210.0110.00716.30
7.3.200.0060.00919.39
7.3.190.0050.01216.27
7.3.180.0060.01016.27
7.3.170.0070.01416.48
7.3.160.0100.01016.50
7.3.120.0030.01014.68
7.3.110.0070.00314.75
7.3.100.0060.00314.81
7.3.90.0040.00714.71
7.3.80.0030.00914.45
7.3.70.0060.00614.53
7.3.60.0030.00614.36
7.3.50.0030.01014.63
7.3.40.0060.00914.59
7.3.30.0080.00314.55
7.3.20.0100.00316.39
7.3.10.0100.00716.68
7.3.00.0000.01616.79
7.2.330.0030.01416.69
7.2.320.0060.01216.66
7.2.310.0150.00316.61
7.2.300.0120.00616.76
7.2.290.0030.01416.77
7.2.240.0100.00615.07
7.2.230.0030.00914.73
7.2.220.0070.00714.96
7.2.210.0030.01414.89
7.2.200.0030.01214.82
7.2.190.0060.00615.03
7.2.180.0030.01014.73
7.2.170.0060.00614.69
7.2.160.0030.01215.04
7.2.150.0070.00716.82
7.2.140.0030.01016.80
7.2.130.0070.01016.61
7.2.120.0000.01516.96
7.2.110.0060.00916.73
7.2.100.0030.01216.39
7.2.90.0060.00916.82
7.2.80.0030.00717.06
7.2.70.0110.00616.96
7.2.60.0100.00716.60
7.2.50.0090.00616.84
7.2.40.0080.00316.68
7.2.30.0090.00616.88
7.2.20.0070.00716.87
7.2.10.0080.00416.84
7.2.00.0080.00618.02
7.1.330.0030.00715.57
7.1.320.0060.00315.83
7.1.310.0070.00715.85
7.1.300.0060.01015.64
7.1.290.0100.00315.63
7.1.280.0040.01115.76
7.1.270.0080.00815.52
7.1.260.0130.00015.75
7.1.250.0060.01015.68
7.1.100.0030.01218.32
7.1.70.0000.00718.71
7.1.60.0090.00618.71
7.1.50.0040.00718.71
7.1.40.0030.00918.71
7.1.30.0030.00818.71
7.1.20.0040.00718.71
7.1.10.0040.00418.71
7.1.00.0000.01718.71
7.0.200.0000.00718.71
7.0.190.0000.00718.71
7.0.180.0040.00418.71
7.0.170.0030.00618.71
7.0.160.0000.00718.71
7.0.150.0030.00518.71
7.0.140.0000.00718.71
7.0.130.0000.01618.71
7.0.120.0000.01518.71
7.0.110.0000.01418.71
7.0.100.0070.00718.71
7.0.90.0040.01218.71
7.0.80.0030.00718.71
7.0.70.0030.01018.71
7.0.60.0060.01218.71
7.0.50.0040.00418.71
7.0.40.0030.01018.71
7.0.30.0070.00418.71
7.0.20.0040.00718.71
7.0.10.0000.01118.71
7.0.00.0050.00318.71
5.6.300.0030.04020.80
5.6.290.0030.06220.90
5.6.280.0000.05120.87
5.6.270.0070.04620.87
5.6.260.0070.07821.00
5.6.250.0030.07521.00
5.6.240.0000.08420.97
5.6.230.0000.04620.98
5.6.220.0000.04420.90
5.6.210.0030.04220.79
5.6.200.0030.08521.00
5.6.190.0030.04220.95
5.6.180.0070.04621.01
5.6.170.0030.09520.68
5.6.160.0000.04420.81
5.6.150.0030.04220.94
5.6.140.0000.04720.86
5.6.130.0030.07320.97
5.6.120.0030.04821.03
5.6.110.0000.05520.81
5.6.100.0100.07721.03
5.6.90.0000.05420.91
5.6.80.0070.03720.35
5.6.70.0070.03620.18
5.6.60.0070.03620.33
5.6.50.0070.07220.19
5.6.40.0000.04120.33
5.6.30.0030.04320.16
5.6.20.0070.04020.15
5.6.10.0070.04420.18
5.6.00.0070.03420.27
5.5.380.0030.06818.71
5.5.370.0190.03518.71
5.5.360.0070.08218.71
5.5.350.0000.07218.71
5.5.340.0070.08118.71
5.5.330.0070.08018.71
5.5.320.0030.04018.71
5.5.310.0000.04718.71
5.5.300.0000.04218.71
5.5.290.0100.05218.71
5.5.280.0100.04318.71
5.5.270.0030.08318.71
5.5.260.0030.04918.71
5.5.250.0000.05718.71
5.5.240.0070.03618.71
5.5.230.0000.04318.71
5.5.220.0060.04118.71
5.5.210.0030.03918.71
5.5.200.0100.05718.71
5.5.190.0040.04018.71
5.5.180.0060.04118.71
5.5.160.0030.03918.71
5.5.150.0000.04218.71
5.5.140.0130.03218.71
5.5.130.0120.03118.71
5.5.120.0060.03618.71
5.5.110.0000.04118.71
5.5.100.0030.04018.71
5.5.90.0070.04218.71
5.5.80.0090.03718.71
5.5.70.0100.03618.71
5.5.60.0060.03518.71
5.5.50.0070.03718.71
5.5.40.0070.03818.71
5.5.30.0030.03618.71
5.5.20.0030.04818.71
5.5.10.0070.03618.71
5.5.00.0060.03518.71
5.4.450.0000.07619.48
5.4.440.0070.07519.39
5.4.430.0000.08519.38
5.4.420.0070.03719.36
5.4.410.0090.03419.10
5.4.400.0230.03618.96
5.4.390.0000.04518.91
5.4.380.0140.04518.89
5.4.370.0170.03119.12
5.4.360.0100.07518.88
5.4.350.0100.03718.90
5.4.340.0000.04418.96
5.4.320.0070.03618.87
5.4.310.0070.06719.10
5.4.300.0090.07518.95
5.4.290.0060.03619.00
5.4.280.0070.05018.90
5.4.270.0000.04318.95
5.4.260.0000.04118.90
5.4.250.0030.05018.81
5.4.240.0030.03719.13
5.4.230.0130.02918.89
5.4.220.0090.04318.92
5.4.210.0030.04618.87
5.4.200.0000.04519.04
5.4.190.0070.05919.13
5.4.180.0060.05219.02
5.4.170.0070.03818.86
5.4.160.0070.03918.98
5.4.150.0030.03818.86
5.4.140.0030.04318.71
5.4.130.0000.03818.71
5.4.120.0100.04618.71
5.4.110.0030.04118.71
5.4.100.0040.03718.71
5.4.90.0030.03718.71
5.4.80.0030.03518.71
5.4.70.0030.04018.71
5.4.60.0030.03718.71
5.4.50.0040.05318.71
5.4.40.0030.03518.71
5.4.30.0030.03618.71
5.4.20.0040.03618.71
5.4.10.0060.03518.71
5.4.00.0030.03318.71
5.3.290.0030.04218.71
5.3.280.0030.05818.71
5.3.270.0030.05218.71
5.3.260.0030.04018.71
5.3.250.0060.03318.71
5.3.240.0030.03518.71
5.3.230.0030.03818.71
5.3.220.0000.04418.71
5.3.210.0000.04118.71
5.3.200.0000.03918.71
5.3.190.0000.04018.71
5.3.180.0060.03718.71
5.3.170.0000.04418.71
5.3.160.0000.03918.71
5.3.150.0070.04418.71
5.3.140.0040.03618.71
5.3.130.0030.04618.71
5.3.120.0060.03518.71
5.3.110.0040.03618.71
5.3.100.0030.03718.71
5.3.90.0000.03918.71
5.3.80.0100.03818.71
5.3.70.0030.07418.71
5.3.60.0030.05618.71
5.3.50.0000.04418.71
5.3.40.0000.06418.71
5.3.30.0030.07818.71
5.3.20.0070.03618.71
5.3.10.0030.03318.71
5.3.00.0030.03618.71
5.2.170.0000.04818.71
5.2.160.0000.03118.71
5.2.150.0030.03618.71
5.2.140.0070.05918.71
5.2.130.0000.03018.71
5.2.120.0030.03818.71
5.2.110.0030.02918.71
5.2.100.0030.05318.71
5.2.90.0000.03018.71
5.2.80.0060.02918.71
5.2.70.0060.03518.71
5.2.60.0030.04018.71
5.2.50.0000.07018.71
5.2.40.0000.04118.71
5.2.30.0030.02718.71
5.2.20.0030.05318.71
5.2.10.0030.02718.71
5.2.00.0000.03418.71
5.1.60.0030.02418.71
5.1.50.0000.06018.71
5.1.40.0000.05418.71
5.1.30.0000.04818.71
5.1.20.0060.02218.71
5.1.10.0030.03618.71
5.1.00.0030.05518.71
5.0.50.0000.03718.71
5.0.40.0100.02718.71
5.0.30.0030.06518.71
5.0.20.0030.02418.71
5.0.10.0030.02718.71
5.0.00.0030.03318.71
4.4.90.0000.01618.71
4.4.80.0000.04018.71
4.4.70.0030.01918.71
4.4.60.0000.01718.71
4.4.50.0030.01818.71
4.4.40.0030.05618.71
4.4.30.0070.03318.71
4.4.20.0030.03618.71
4.4.10.0000.01618.71
4.4.00.0030.03418.71
4.3.110.0000.03818.71
4.3.100.0060.02118.71
4.3.90.0030.01918.71
4.3.80.0030.04018.71
4.3.70.0000.01618.71
4.3.60.0030.02618.71
4.3.50.0060.02818.71
4.3.40.0000.05518.71
4.3.30.0040.02218.71
4.3.20.0030.01618.71
4.3.10.0000.01818.71
4.3.00.0030.01318.71

preferences:
50.85 ms | 400 KiB | 5 Q