3v4l.org

run code in 300+ PHP versions simultaneously
<?php $lg = ['league_1', 'league_2', 'league_3']; $hm = ['home 1','home 2','home 3','home 4','home 5','home 6',]; $aw = ['away 1','away 2','away 3','away 4','away 5','away 6',]; $sup = [3,1,2]; $u = 0; foreach ($sup as $ind=>$num){ for($i=0;$i<$num;$i++){ $item['group']['name'] = $lg[$ind]; $item['group']['user_1'] = $hm[$u+$i]; $item['group']['user_2'] = $aw[$u+$i]; $groups[] = $item; } $u+=$i++; } print_r($groups);

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.4.120.0080.01022.41
8.4.110.0130.00622.40
8.4.100.0120.00618.42
8.4.90.0110.00918.79
8.4.80.0060.00517.99
8.4.70.0060.00417.83
8.4.60.0100.01018.57
8.4.50.0050.00418.71
8.4.40.0170.00320.18
8.4.30.0060.00320.25
8.4.20.0140.00319.59
8.4.10.0000.00919.64
8.3.250.0090.00819.23
8.3.240.0100.00917.03
8.3.230.0090.00916.42
8.3.220.0110.00719.03
8.3.210.0110.00916.86
8.3.200.0060.00316.73
8.3.190.0040.00417.21
8.3.180.0140.00616.80
8.3.170.0030.00716.50
8.3.160.0140.00418.40
8.3.150.0160.00317.36
8.3.140.0100.00017.38
8.3.130.0120.00016.61
8.3.120.0140.00420.79
8.3.110.0130.00320.94
8.3.100.0030.00624.06
8.3.90.0110.00726.77
8.3.80.0060.00318.31
8.3.70.0120.00316.61
8.3.60.0150.00618.43
8.3.50.0060.00923.64
8.3.40.0070.00718.76
8.3.30.0070.00718.56
8.3.20.0080.00020.53
8.3.10.0050.00320.20
8.3.00.0040.00420.64
8.2.290.0090.00620.23
8.2.280.0040.00420.08
8.2.270.0120.00916.42
8.2.260.0070.00720.58
8.2.250.0110.00418.45
8.2.240.0050.00517.09
8.2.230.0040.00422.58
8.2.220.0080.00037.54
8.2.210.0050.00326.77
8.2.200.0100.00016.63
8.2.190.0110.00416.58
8.2.180.0140.00718.54
8.2.170.0110.00422.96
8.2.160.0110.00322.12
8.2.150.0030.00624.18
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0020.00526.16
8.2.110.0060.00322.20
8.2.100.0080.00417.91
8.2.90.0060.00318.03
8.2.80.0050.00319.33
8.2.70.0000.00817.63
8.2.60.0050.00318.04
8.2.50.0040.00417.80
8.2.40.0040.00419.64
8.2.30.0000.00717.74
8.2.20.0040.00418.23
8.2.10.0000.00719.27
8.2.00.0070.00019.19
8.1.330.0130.00522.12
8.1.320.0090.01015.94
8.1.310.0040.00416.68
8.1.300.0120.00417.91
8.1.290.0050.00518.88
8.1.280.0060.01225.92
8.1.270.0040.00420.68
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0060.01223.95
8.1.230.0060.00622.68
8.1.220.0100.00017.79
8.1.210.0080.00018.79
8.1.200.0040.00717.48
8.1.190.0040.00417.36
8.1.180.0060.00318.10
8.1.170.0060.00317.62
8.1.160.0040.00420.66
8.1.150.0070.00018.80
8.1.140.0000.00722.02
8.1.130.0080.00020.06
8.1.120.0100.00017.36
8.1.110.0000.00817.40
8.1.100.0000.00717.48
8.1.90.0030.00317.45
8.1.80.0000.00817.50
8.1.70.0040.00417.32
8.1.60.0040.00417.61
8.1.50.0000.00817.55
8.1.40.0000.00817.39
8.1.30.0040.00417.48
8.1.20.0040.00417.63
8.1.10.0030.00617.41
8.1.00.0000.00717.47
8.0.300.0000.00822.03
8.0.290.0040.00416.75
8.0.280.0000.00718.50
8.0.270.0030.00318.01
8.0.260.0070.00019.95
8.0.250.0040.00416.95
8.0.240.0000.00716.94
8.0.230.0030.00316.93
8.0.220.0040.00416.79
8.0.210.0030.00316.89
8.0.200.0030.00316.91
8.0.190.0040.00316.79
8.0.180.0040.00416.81
8.0.170.0030.00516.80
8.0.160.0070.00016.99
8.0.150.0040.00416.86
8.0.140.0040.00416.83
8.0.130.0050.00013.37
8.0.120.0030.00716.80
8.0.110.0000.00816.80
8.0.100.0000.00716.77
8.0.90.0030.00616.86
8.0.80.0060.00916.80
8.0.70.0000.00816.89
8.0.60.0000.00716.76
8.0.50.0040.00416.69
8.0.30.0090.00917.00
8.0.20.0060.01217.02
8.0.10.0040.00416.90
8.0.00.0070.01016.59
7.4.330.0020.00215.55
7.4.320.0030.00316.56
7.4.300.0000.00616.64
7.4.290.0030.00316.59
7.4.280.0050.00316.39
7.4.270.0000.00816.61
7.4.260.0000.00513.24
7.4.250.0030.00516.49
7.4.240.0000.00716.49
7.4.230.0000.00716.63
7.4.220.0040.00316.67
7.4.210.0040.01416.38
7.4.200.0030.00316.61
7.4.130.0090.00916.39
7.4.120.0130.01016.49
7.4.110.0120.00616.49
7.4.100.0060.01316.43
7.4.90.0130.01016.60
7.4.80.0160.00019.39
7.4.70.0120.00816.34
7.4.60.0130.00316.42
7.4.50.0070.01016.36
7.4.40.0090.00916.51
7.4.00.0040.01114.77
7.3.330.0030.00316.29
7.3.320.0000.00613.17
7.3.310.0050.00216.43
7.3.300.0000.00716.33
7.3.290.0090.00616.32
7.3.280.0040.01416.38
7.3.260.0040.01316.45
7.3.240.0110.00616.50
7.3.230.0040.01516.43
7.3.210.0120.00616.37
7.3.200.0120.00816.37
7.3.190.0120.00916.53
7.3.180.0060.00916.45
7.3.170.0060.01016.64
7.3.160.0100.00616.51
7.3.120.0040.01014.32
7.3.110.0070.00714.39
7.3.100.0120.00614.49
7.3.90.0060.01014.79
7.3.80.0080.00614.32
7.3.70.0060.00814.80
7.3.60.0090.00914.81
7.3.50.0090.00814.25
7.3.40.0110.01014.55
7.3.30.0070.01114.61
7.3.20.0120.00914.54
7.3.10.0090.00914.28
7.3.00.0150.00314.45
7.2.330.0080.01116.62
7.2.320.0100.01016.53
7.2.310.0030.01416.67
7.2.300.0110.01116.45
7.2.290.0070.01016.75
7.2.250.0060.00914.80
7.2.240.0060.00815.13
7.2.230.0100.00715.00
7.2.220.0070.00715.12
7.2.210.0090.00615.00
7.2.200.0130.00314.92
7.2.190.0130.00715.03
7.2.180.0060.01214.92
7.2.170.0070.01314.76
7.1.330.0060.00913.93
7.1.320.0080.00813.89
7.1.310.0120.00913.85
7.1.300.0160.00313.72
7.1.290.0060.01213.83
7.1.280.0080.01213.79
7.1.270.0090.00913.82
7.1.260.0090.01013.95

preferences:
32.5 ms | 403 KiB | 5 Q