3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr2 = array ( 0 => array ( 0 => 'company-group', 1 => 'index', ), 1 => array ( 0 => 'company-group', 1 => 'view', ), 2 => array ( 0 => 'company-group', 1 => 'create', ), 3 => array ( 0 => 'company-group', 1 => 'update', ), 4 => array ( 0 => 'company-group', 1 => 'delete', ), 5 => array ( 0 => 'company-industry', 1 => 'index', ), 6 => array ( 0 => 'company-industry', 1 => 'view', ), 7 => array ( 0 => 'company-industry', 1 => 'create', ), 8 => array ( 0 => 'company-industry', 1 => 'update', ), 9 => array ( 0 => 'company-industry', 1 => 'delete', ), ); Foreach($arr2 as $sub){ $new[$sub[0]]["key"] = $sub[0]; $new[$sub[0]]["val"][] = $sub[1]; } Var_dump(array_values($new));

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.140.0120.00917.53
8.4.130.0130.00617.53
8.4.120.0090.01120.29
8.4.110.0080.01222.41
8.4.100.0140.00517.51
8.4.90.0120.00818.86
8.4.80.0110.00919.72
8.4.70.0090.00617.76
8.4.60.0110.01023.98
8.4.50.0120.00822.68
8.4.40.0090.00619.54
8.4.30.0130.00717.43
8.4.20.0070.01420.38
8.4.10.0030.00617.70
8.3.270.0130.00716.49
8.3.260.0090.00716.43
8.3.250.0080.00219.04
8.3.240.0050.00316.63
8.3.230.0080.01016.45
8.3.220.0090.00819.09
8.3.210.0100.00818.44
8.3.200.0040.00516.57
8.3.190.0120.00717.03
8.3.180.0110.00719.02
8.3.170.0100.01016.45
8.3.160.0070.01119.06
8.3.150.0200.00017.42
8.3.140.0000.00920.75
8.3.130.0060.00318.52
8.3.120.0090.00618.82
8.3.110.0050.00520.94
8.3.100.0090.00016.65
8.3.90.0110.00416.58
8.3.80.0090.00017.97
8.3.70.0080.00816.58
8.3.60.0100.00718.40
8.3.50.0110.00817.34
8.3.40.0160.00318.71
8.3.30.0120.00318.67
8.3.20.0090.00918.73
8.3.10.0080.00821.72
8.3.00.0040.00423.65
8.2.290.0090.01120.47
8.2.280.0150.00418.47
8.2.270.0080.01118.43
8.2.260.0090.00916.61
8.2.250.0180.00016.47
8.2.240.0170.00317.35
8.2.230.0000.00922.58
8.2.220.0070.00424.06
8.2.210.0150.00326.77
8.2.200.0030.00616.75
8.2.190.0000.01516.58
8.2.180.0110.01125.92
8.2.170.0120.00318.94
8.2.160.0050.00822.96
8.2.150.0080.00024.18
8.2.140.0120.00324.66
8.2.130.0090.00021.08
8.2.120.0110.00326.35
8.2.110.0100.00019.13
8.2.100.0140.00020.41
8.2.90.0070.00319.30
8.2.80.0040.00417.97
8.2.70.0050.00318.04
8.2.60.0060.00318.22
8.2.50.0040.00418.10
8.2.40.0040.00419.38
8.2.30.0040.00420.55
8.2.20.0040.00418.05
8.2.10.0060.00318.03
8.2.00.0000.00818.11
8.1.330.0110.00621.90
8.1.320.0110.00717.95
8.1.310.0060.00318.50
8.1.300.0040.01317.79
8.1.290.0060.00318.88
8.1.280.0160.00625.92
8.1.270.0000.01122.21
8.1.260.0080.00026.35
8.1.250.0060.00328.09
8.1.240.0060.00319.50
8.1.230.0070.00420.88
8.1.220.0060.00317.74
8.1.210.0030.00618.77
8.1.200.0060.00317.25
8.1.190.0000.00817.35
8.1.180.0000.00718.10
8.1.170.0000.00820.69
8.1.160.0040.00418.81
8.1.150.0040.00418.76
8.1.140.0040.00418.87
8.1.130.0000.00720.30
8.1.120.0060.00617.38
8.1.110.0040.00417.47
8.1.100.0030.00517.46
8.1.90.0040.00417.48
8.1.80.0050.00517.35
8.1.70.0000.00717.50
8.1.60.0040.00417.58
8.1.50.0070.00017.39
8.1.40.0040.00717.50
8.1.30.0000.00817.54
8.1.20.0000.00717.68
8.1.10.0000.00817.50
8.1.00.0080.00017.41
8.0.300.0070.00019.74
8.0.290.0040.00416.63
8.0.280.0070.00018.49
8.0.270.0000.00717.25
8.0.260.0030.00320.10
8.0.250.0000.00916.99
8.0.240.0000.00816.94
8.0.230.0030.00316.91
8.0.220.0070.00016.89
8.0.210.0070.00016.86
8.0.200.0000.00716.90
8.0.190.0070.00316.91
8.0.180.0030.00516.95
8.0.170.0040.00416.91
8.0.160.0030.00316.74
8.0.150.0000.00716.88
8.0.140.0000.00716.87
8.0.130.0030.00313.35
8.0.120.0000.00716.87
8.0.110.0040.00416.89
8.0.100.0000.00716.71
8.0.90.0040.00416.98
8.0.80.0090.00816.89
8.0.70.0000.00716.75
8.0.60.0000.00716.79
8.0.50.0000.00716.76
8.0.30.0100.00917.15
8.0.20.0080.01217.40
8.0.10.0080.00017.00
8.0.00.0110.00916.71
7.4.330.0000.00515.55
7.4.320.0000.00616.60
7.4.300.0030.00316.49
7.4.290.0000.01116.51
7.4.280.0080.00016.53
7.4.270.0030.00316.61
7.4.260.0050.00316.43
7.4.250.0050.00316.55
7.4.240.0030.00516.50
7.4.230.0070.00016.67
7.4.220.0000.00816.61
7.4.210.0070.00916.54
7.4.200.0070.00016.50
7.4.160.0110.00616.51
7.4.140.0140.00517.86
7.4.130.0140.00316.44
7.4.120.0120.00716.44
7.4.110.0130.00316.57
7.4.100.0100.00716.38
7.4.90.0130.00616.44
7.4.80.0090.00919.39
7.4.70.0110.00516.61
7.4.60.0080.00816.59
7.4.50.0070.00316.56
7.4.40.0160.00916.48
7.4.00.0060.00915.19
7.3.330.0030.00313.16
7.3.320.0030.00313.20
7.3.310.0030.00316.34
7.3.300.0030.00316.17
7.3.290.0030.00316.32
7.3.280.0070.00916.28
7.3.260.0050.01616.38
7.3.240.0130.00816.49
7.3.230.0110.00916.21
7.3.210.0070.01016.62
7.3.200.0040.01316.30
7.3.190.0130.00316.23
7.3.180.0090.01216.45
7.3.170.0080.00816.37
7.3.160.0090.00616.55
7.3.10.0080.01116.73
7.3.00.0160.00316.56
7.2.330.0060.01616.65
7.2.320.0100.01016.49
7.2.310.0070.01116.65
7.2.300.0060.01216.63
7.2.290.0190.00316.71
7.2.130.0070.01316.88
7.2.120.0080.01316.90
7.2.110.0140.00316.54
7.2.100.1980.00515.55
7.2.90.2120.00915.73
7.2.80.2670.00915.69
7.2.70.4110.00516.11
7.2.60.0980.00515.92
7.2.50.1400.01216.01
7.2.40.1610.00915.95
7.2.30.2760.01216.05
7.2.20.0590.00515.74
7.2.10.2520.00815.85
7.2.00.3320.00515.62
7.1.250.0040.01415.72
7.1.240.0100.00715.68
7.1.230.0110.00415.81
7.1.220.2390.00714.79
7.1.210.2620.00814.96
7.1.200.2590.00714.80
7.1.190.3210.00514.67
7.1.180.1790.00514.91
7.1.170.1560.00814.79
7.1.160.3190.00914.63
7.1.150.3100.00614.82
7.1.140.0420.00714.77
7.1.130.0540.01314.90
7.1.120.3170.00814.78
7.1.110.3280.00814.82
7.1.100.3260.00914.91
7.1.90.2950.00514.74
7.1.80.3010.01214.82
7.1.70.2800.01214.73
7.1.60.2820.00523.97
7.1.50.5100.00723.65
7.1.40.4650.01423.88
7.1.30.5020.00823.89
7.1.20.4880.01023.60
7.1.10.4100.01414.95
7.1.00.2700.00714.62
7.0.330.0120.00415.20
5.6.380.0110.00614.36

preferences:
37.58 ms | 403 KiB | 5 Q