3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array ( 'EVENTNAME' => array ( 0 => 'Brexit', 1 => 'leave date set', 2 => 'leave date ', 3 => 'deal or no deal', ), 'IMMIGRATIONS' => array ( 0 => '1', 1 => '1', 2 => '1', 3 => '1', ), 'EFFECTS' => array ( 0 => '2', 1 => '1', 2 => '1', 3 => '2', ), 'SUPPLYCHAINS' => array ( 0 => '1', 1 => '1', 2 => '1', 3 => '1', ), ); $keys = array_keys($arr); foreach($arr[$keys[0]] as $key => $val){ $result[$val] = array_column(array_slice($arr,1), $key); } var_export($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.3.130.0040.00418.29
8.3.120.0090.00620.91
8.3.110.0030.00620.94
8.3.100.0040.00416.65
8.3.90.0090.00926.77
8.3.80.0030.00616.50
8.3.70.0100.01016.58
8.3.60.0120.00318.30
8.3.50.0080.00518.32
8.3.40.0110.01118.71
8.3.30.0090.00618.67
8.3.20.0030.00520.95
8.3.10.0000.00823.51
8.3.00.0000.00822.33
8.2.250.0160.00316.79
8.2.240.0090.00917.32
8.2.230.0070.00322.58
8.2.220.0030.00724.06
8.2.210.0070.00726.77
8.2.200.0050.00518.03
8.2.190.0150.00016.63
8.2.180.0070.00725.92
8.2.170.0070.00722.96
8.2.160.0100.00322.17
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0030.00520.83
8.2.120.0000.00726.16
8.2.110.0030.00622.25
8.2.100.0090.00317.97
8.2.90.0050.00317.88
8.2.80.0030.00517.97
8.2.70.0090.00017.90
8.2.60.0000.00818.09
8.2.50.0040.00418.10
8.2.40.0090.00019.34
8.2.30.0070.00019.31
8.2.20.0030.00518.01
8.2.10.0060.00319.19
8.2.00.0000.00718.14
8.1.300.0080.00818.61
8.1.290.0090.00030.84
8.1.280.0040.01525.92
8.1.270.0040.01124.01
8.1.260.0070.00026.35
8.1.250.0000.00828.09
8.1.240.0050.00323.97
8.1.230.0040.00820.88
8.1.220.0080.00017.74
8.1.210.0060.00318.77
8.1.200.0090.00017.35
8.1.190.0000.00817.22
8.1.180.0000.00918.10
8.1.170.0040.00418.63
8.1.160.0000.00718.94
8.1.150.0040.00418.89
8.1.140.0070.00020.16
8.1.130.0000.00717.45
8.1.120.0040.00417.40
8.1.110.0000.00917.53
8.1.100.0050.00217.44
8.1.90.0050.00517.48
8.1.80.0070.00017.45
8.1.70.0000.00717.37
8.1.60.0080.00017.58
8.1.50.0040.00417.51
8.1.40.0040.00417.53
8.1.30.0050.00317.55
8.1.20.0060.00617.70
8.1.10.0050.00217.39
8.1.00.0070.00017.46
8.0.300.0060.00319.66
8.0.290.0040.00416.75
8.0.280.0050.00318.36
8.0.270.0070.00016.88
8.0.260.0030.00316.74
8.0.250.0000.00716.83
8.0.240.0070.00016.98
8.0.230.0080.00016.93
8.0.220.0070.00016.77
8.0.210.0030.00416.89
8.0.200.0000.00717.00
8.0.190.0050.00316.89
8.0.180.0040.00416.91
8.0.170.0030.00616.88
8.0.160.0030.00616.90
8.0.150.0070.00416.80
8.0.140.0050.00316.70
8.0.130.0030.00313.28
8.0.120.0030.00516.82
8.0.110.0000.00716.79
8.0.100.0050.00216.79
8.0.90.0070.00016.93
8.0.80.0090.01316.90
8.0.70.0040.00416.76
8.0.60.0020.00516.84
8.0.50.0050.00316.94
8.0.30.0090.01017.13
8.0.20.0100.00916.98
8.0.10.0050.00317.09
8.0.00.0090.01116.82
7.4.330.0000.00615.55
7.4.320.0000.00616.52
7.4.300.0000.00616.61
7.4.290.0030.00316.65
7.4.280.0080.00016.58
7.4.270.0070.00016.62
7.4.260.0000.00616.59
7.4.250.0030.00316.33
7.4.240.0000.00716.60
7.4.230.0030.00316.63
7.4.220.0000.00716.40
7.4.210.0080.00916.52
7.4.200.0000.00716.35
7.4.160.0110.00516.50
7.4.140.0170.00017.86
7.4.130.0040.01516.48
7.4.120.0100.00716.49
7.4.110.0120.01216.56
7.4.100.0090.00916.46
7.4.90.0070.01016.57
7.4.80.0130.00319.39
7.4.70.0150.00316.49
7.4.60.0100.01016.45
7.4.50.0070.00516.45
7.4.40.0030.01316.70
7.4.00.0100.00715.20
7.3.330.0000.00513.32
7.3.320.0000.00513.22
7.3.310.0000.00716.48
7.3.300.0000.00616.28
7.3.290.0030.00316.29
7.3.280.0090.00816.34
7.3.260.0080.01016.45
7.3.240.0090.00916.55
7.3.230.0080.00816.37
7.3.210.0130.01216.52
7.3.200.0120.00916.29
7.3.190.0080.01116.25
7.3.180.0100.00716.51
7.3.170.0070.01016.68
7.3.160.0100.00616.36
7.3.30.0030.00814.66
7.3.20.0800.00314.84
7.3.10.0090.01314.74
7.3.00.1000.00614.72
7.2.330.0080.01116.74
7.2.320.0030.01516.44
7.2.310.0100.01016.61
7.2.300.0060.00916.67
7.2.290.0100.01316.52
7.2.160.0100.01315.04
7.2.150.1580.00715.06
7.2.140.0060.01114.99
7.2.130.1260.00714.98
7.2.120.0140.00214.79
7.2.110.0260.00014.63
7.2.100.1330.01314.48
7.2.90.1870.00614.90
7.2.80.0080.00814.64
7.2.70.0080.00415.11
7.2.60.0040.00815.13
7.2.50.0390.00014.68
7.2.40.0910.00315.08
7.2.30.0080.01115.25
7.2.20.0200.01415.08
7.2.10.0480.00314.97
7.2.00.0200.00314.84
7.1.270.0100.01313.78
7.1.260.1590.00713.63
7.1.250.2210.00313.79

preferences:
27.04 ms | 403 KiB | 5 Q