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_combine(array_slice($keys, 1), 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.0100.01016.66
8.3.120.0000.01018.96
8.3.110.0040.01116.46
8.3.100.0030.00624.06
8.3.90.0110.00726.77
8.3.80.0070.00416.63
8.3.70.0140.00716.58
8.3.60.0180.00318.31
8.3.50.0110.00118.40
8.3.40.0110.00418.67
8.3.30.0080.00818.58
8.3.20.0000.00720.85
8.3.10.0040.00423.65
8.3.00.0070.00022.52
8.2.250.0040.00418.57
8.2.240.0060.00318.88
8.2.230.0000.00820.94
8.2.220.0040.01837.54
8.2.210.0050.00326.77
8.2.200.0060.00316.38
8.2.190.0120.00916.58
8.2.180.0140.00725.92
8.2.170.0140.00422.96
8.2.160.0060.00922.12
8.2.150.0090.00024.18
8.2.140.0050.00224.66
8.2.130.0030.00926.16
8.2.120.0000.00720.81
8.2.110.0030.00622.25
8.2.100.0050.00917.47
8.2.90.0070.00020.64
8.2.80.0080.00018.04
8.2.70.0030.00618.05
8.2.60.0030.00618.16
8.2.50.0050.00318.10
8.2.40.0000.00819.36
8.2.30.0080.00019.13
8.2.20.0000.00718.00
8.2.10.0040.00419.31
8.2.00.0040.00418.15
8.1.300.0120.00620.33
8.1.290.0030.00730.84
8.1.280.0070.00725.92
8.1.270.0040.00418.89
8.1.260.0040.00426.35
8.1.250.0030.00328.09
8.1.240.0090.00023.91
8.1.230.0060.00621.04
8.1.220.0040.00417.77
8.1.210.0040.00419.04
8.1.200.0030.00617.35
8.1.190.0030.00617.22
8.1.180.0050.00318.10
8.1.170.0040.00418.46
8.1.160.0070.00018.88
8.1.150.0040.00418.95
8.1.140.0040.00420.25
8.1.130.0000.00620.26
8.1.120.0050.00217.38
8.1.110.0040.00717.41
8.1.100.0050.00317.31
8.1.90.0070.00317.48
8.1.80.0070.00017.49
8.1.70.0000.00717.50
8.1.60.0000.00717.49
8.1.50.0000.00717.50
8.1.40.0040.00417.41
8.1.30.0000.00817.66
8.1.20.0000.00917.59
8.1.10.0070.00017.36
8.1.00.0070.00017.45
8.0.300.0070.00019.98
8.0.290.0040.00416.75
8.0.280.0030.00618.41
8.0.270.0030.00316.83
8.0.260.0000.00721.73
8.0.250.0050.00316.86
8.0.240.0000.00716.85
8.0.230.0000.00716.97
8.0.220.0040.00416.93
8.0.210.0000.00716.88
8.0.200.0040.00416.83
8.0.190.0000.00816.84
8.0.180.0050.00316.82
8.0.170.0060.00316.88
8.0.160.0070.00316.96
8.0.150.0060.00316.87
8.0.140.0090.00016.83
8.0.130.0060.00013.36
8.0.120.0070.00016.81
8.0.110.0000.00716.79
8.0.100.0040.00416.85
8.0.90.0030.00516.78
8.0.80.0130.00316.84
8.0.70.0040.00416.88
8.0.60.0040.00416.69
8.0.50.0000.00716.79
8.0.30.0110.00917.04
8.0.20.0150.00717.09
8.0.10.0040.00416.99
8.0.00.0090.01116.81
7.4.330.0060.00015.55
7.4.320.0060.00016.52
7.4.300.0060.00016.52
7.4.290.0040.00416.41
7.4.280.0040.00416.58
7.4.270.0030.00316.51
7.4.260.0000.00716.47
7.4.250.0000.00716.48
7.4.240.0070.00016.47
7.4.230.0040.00416.42
7.4.220.0000.00716.31
7.4.210.0060.00916.61
7.4.200.0000.00716.54
7.4.160.0090.01016.45
7.4.140.0130.01017.86
7.4.130.0060.01216.71
7.4.120.0100.01416.50
7.4.110.0100.01316.40
7.4.100.0140.00316.56
7.4.90.0170.00016.44
7.4.80.0110.01419.39
7.4.70.0160.00016.58
7.4.60.0030.01516.52
7.4.50.0000.01416.29
7.4.40.0100.00716.65
7.4.10.0030.01615.18
7.4.00.0080.00814.87
7.3.330.0030.00313.14
7.3.320.0060.00013.08
7.3.310.0050.00316.42
7.3.300.0000.00616.32
7.3.290.0000.00716.18
7.3.280.0050.01216.29
7.3.260.0100.00916.40
7.3.240.0080.01116.55
7.3.230.0080.01216.32
7.3.210.0130.00316.55
7.3.200.0060.01016.21
7.3.190.0060.01516.45
7.3.180.0100.00716.29
7.3.170.0200.00316.41
7.3.160.0000.01616.52
7.3.130.0130.00614.73
7.3.120.0120.00614.80
7.3.110.0070.01114.65
7.3.100.0050.01214.88
7.3.90.0070.00915.00
7.3.80.0090.00415.05
7.3.70.0060.00414.65
7.3.60.0040.00714.81
7.3.50.0030.01114.68
7.3.40.0040.00514.77
7.3.30.0050.00914.67
7.3.20.0930.00415.94
7.3.10.0780.00416.06
7.3.00.0780.00716.09
7.2.330.0100.00716.51
7.2.320.0090.01216.73
7.2.310.0140.00316.77
7.2.300.0120.00916.60
7.2.290.0090.01216.43
7.2.260.0030.01615.18
7.2.250.0110.00815.13
7.2.240.0070.01015.23
7.2.230.0070.00815.17
7.2.220.0050.00615.07
7.2.210.0050.00815.14
7.2.200.0020.01315.15
7.2.190.0070.00614.74
7.2.180.0080.00715.12
7.2.170.0030.00715.05
7.2.160.0070.00814.94
7.2.150.1120.00516.24
7.2.140.1060.00916.19
7.2.130.0760.00816.12
7.2.120.1130.00816.20
7.2.110.0960.00616.30
7.2.100.1090.01016.22
7.2.90.0840.00816.25
7.2.80.0900.00716.29
7.2.70.0840.00816.31
7.2.60.0860.00416.25
7.2.50.0970.00716.40
7.2.40.0890.00916.33
7.2.30.1100.00616.38
7.2.20.1220.00716.37
7.2.10.0940.00716.23
7.2.00.0920.00916.32
7.1.330.0060.01015.82
7.1.320.0060.00515.85
7.1.310.0090.00415.74
7.1.300.0050.00715.77
7.1.290.0030.01015.79
7.1.280.0030.01015.69
7.1.270.0780.01014.97
7.1.260.0830.00815.15
7.1.250.0890.00915.03
7.1.240.0050.01215.63
7.1.230.0000.01115.81
7.1.220.0040.00815.79
7.1.210.0040.00915.64
7.1.200.0060.00515.73
7.1.190.0090.00515.54
7.1.180.0070.00715.68
7.1.170.0050.01015.59
7.1.160.0120.00515.83
7.1.150.0060.00815.97
7.1.140.0040.00615.83
7.1.130.0050.00715.83
7.1.120.0060.00815.63
7.1.110.0070.00315.94
7.1.100.0050.01015.90
7.1.90.0030.01015.76
7.1.80.0070.00615.94
7.1.70.0030.00815.90
7.1.60.0090.00515.60
7.1.50.0030.01015.79
7.1.40.0080.00515.64
7.1.30.0020.01415.71
7.1.20.0070.00915.77
7.1.10.0050.01015.67
7.1.00.0060.00815.45

preferences:
33.88 ms | 403 KiB | 5 Q