3v4l.org

run code in 300+ PHP versions simultaneously
<?php $regions = [ 'int' => 1, 'nl' => 2, 'be' => 4, 'us' => 8, 'as' => 16, 'za' => 32, ]; for ($i = 0; ++$i < 1 << count($regions); array_walk($regions, function ($x, $region) use (&$list, $i) { if (!($i & $x)) return; if (isset($list[$region])) $list[$region] .= ",$i"; else $list[$region] = $i; })); var_dump($list); unset($list); foreach ($regions as $region => $x) for ($i = $x; end($regions) * 2 - $i > 0; ++$i%$x?:$i+=$x){var_dump($i, $x, end($regions) * 2 - $i); if (isset($list[$region])) $list[$region] .= ",$i"; else $list[$region] = $i;} var_dump($list);

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.70.0190.00016.47
8.3.60.0080.00816.74
8.3.50.0100.01122.00
8.3.40.0040.01218.88
8.3.30.0100.00719.09
8.3.20.0080.00020.18
8.3.10.0100.00723.80
8.3.00.0030.00619.26
8.2.180.0100.00716.74
8.2.170.0140.01022.96
8.2.160.0110.00820.52
8.2.150.0060.00324.18
8.2.140.0030.00624.66
8.2.130.0000.00826.16
8.2.120.0030.01222.13
8.2.110.0090.00322.13
8.2.100.0030.01018.03
8.2.90.0000.00819.39
8.2.80.0040.00417.97
8.2.70.0080.00017.63
8.2.60.0060.00317.80
8.2.50.0060.00318.07
8.2.40.0000.00918.35
8.2.30.0040.00418.17
8.2.20.0040.00417.69
8.2.10.0040.00418.20
8.2.00.0030.00617.85
8.1.280.0060.00925.92
8.1.270.0070.00323.86
8.1.260.0090.00026.35
8.1.250.0090.00028.09
8.1.240.0030.00623.98
8.1.230.0060.00619.01
8.1.220.0050.00317.79
8.1.210.0040.00418.77
8.1.200.0070.00317.11
8.1.190.0060.00317.13
8.1.180.0060.00318.10
8.1.170.0000.00818.86
8.1.160.0030.00518.95
8.1.150.0040.00418.65
8.1.140.0050.00317.38
8.1.130.0040.00417.87
8.1.120.0000.00717.38
8.1.110.0000.00817.47
8.1.100.0080.00017.44
8.1.90.0040.00417.52
8.1.80.0060.00317.36
8.1.70.0040.00417.42
8.1.60.0030.00617.58
8.1.50.0030.00617.36
8.1.40.0030.00517.48
8.1.30.0060.00317.55
8.1.20.0090.00017.67
8.1.10.0030.00517.45
8.1.00.0040.00417.54
8.0.300.0040.00418.77
8.0.290.0020.00716.75
8.0.280.0000.00818.46
8.0.270.0060.00317.20
8.0.260.0000.00717.25
8.0.250.0000.00816.88
8.0.240.0080.00016.98
8.0.230.0070.00016.85
8.0.220.0040.00416.92
8.0.210.0000.00716.93
8.0.200.0070.00316.96
8.0.190.0030.00616.84
8.0.180.0050.00316.88
8.0.170.0060.00316.81
8.0.160.0060.00316.95
8.0.150.0030.00516.80
8.0.140.0040.00416.74
8.0.130.0060.00013.31
8.0.120.0040.00416.94
8.0.110.0000.00816.90
8.0.100.0000.00716.73
8.0.90.0070.00016.96
8.0.80.0090.00916.86
8.0.70.0040.00416.87
8.0.60.0030.00516.78
8.0.50.0080.00016.88
8.0.30.0100.01417.30
8.0.20.0090.01417.40
8.0.10.0080.00017.07
8.0.00.0150.01216.82
7.4.330.0030.00315.00
7.4.320.0000.00816.43
7.4.300.0040.00416.51
7.4.290.0000.00716.46
7.4.280.0070.00316.63
7.4.270.0060.00316.65
7.4.260.0070.00016.64
7.4.250.0040.00416.54
7.4.240.0060.00116.51
7.4.230.0040.00416.32
7.4.220.0100.00916.57
7.4.210.0110.00716.60
7.4.200.0080.00016.70
7.4.190.0000.00816.40
7.4.160.0130.00616.38
7.4.150.0160.01317.40
7.4.140.0100.01217.86
7.4.130.0070.01616.51
7.4.120.0090.01316.54
7.4.110.0040.02116.44
7.4.100.0080.01216.50
7.4.90.0080.01616.62
7.4.80.0160.00719.39
7.4.70.0190.00416.41
7.4.60.0100.01016.37
7.4.50.0000.00916.31
7.4.40.0090.00916.64
7.4.30.0040.01516.44
7.4.00.0110.00414.97
7.3.330.0020.00513.40
7.3.320.0000.00613.38
7.3.310.0040.00416.38
7.3.300.0040.00416.40
7.3.290.0170.00416.31
7.3.280.0100.00816.38
7.3.270.0100.01017.40
7.3.260.0090.01216.65
7.3.250.0110.01116.46
7.3.240.0110.01116.66
7.3.230.0180.00416.43
7.3.210.0150.00716.64
7.3.200.0130.01019.39
7.3.190.0090.01516.55
7.3.180.0190.00616.64
7.3.170.0030.01416.56
7.3.160.0120.00616.40
7.3.120.0110.00415.09
7.3.00.0060.01216.24
7.2.330.0130.00816.67
7.2.320.0140.00916.49
7.2.310.0130.00816.75
7.2.300.0100.01116.54
7.2.290.0120.01616.61
7.2.130.0080.00316.45
7.2.120.0090.01216.89
7.2.110.0130.00716.95
7.2.100.0000.01616.91
7.2.90.0190.00016.64
7.2.80.0030.01016.90
7.2.70.0070.01016.77
7.2.60.0040.01116.88
7.2.50.0160.00316.65
7.2.40.0060.01017.16
7.2.30.0030.01017.05
7.2.20.0070.00317.09
7.2.10.0000.01116.98
7.2.00.0090.00417.94
7.1.250.0060.00915.47
7.1.240.0040.00715.57
7.1.230.0070.00715.43
7.1.220.0000.00915.54
7.1.210.0100.00315.77
7.1.200.0090.00715.67
7.1.190.0080.00415.91
7.1.180.0040.00715.77
7.1.170.0030.00615.48
7.1.160.0060.00315.83
7.1.150.0030.01015.55
7.1.140.0060.00615.89
7.1.130.0160.00015.89
7.1.120.0040.00815.67
7.1.110.0060.00615.81
7.1.100.0000.01216.71
7.1.90.0100.00315.68
7.1.80.0000.01315.50
7.1.70.0040.00816.37
7.1.60.0080.01117.29
7.1.50.0110.00916.41
7.1.40.0040.00815.98
7.1.30.0030.01015.75
7.1.20.0030.01015.89
7.1.10.0000.01415.79
7.1.00.0070.04019.02
7.0.330.0110.00414.97
7.0.320.0000.01515.47
7.0.310.0160.00015.24
7.0.300.0030.01115.46
7.0.290.0000.01415.37
7.0.280.0140.00015.27
7.0.270.0000.01115.43
7.0.260.0030.00615.29
7.0.250.0040.00715.42
7.0.240.0040.00715.22
7.0.230.0030.00915.38
7.0.220.0090.00615.40
7.0.210.0060.00615.56
7.0.200.0050.00716.08
7.0.190.0080.00415.54
7.0.180.0080.00415.38
7.0.170.0090.00615.41
7.0.160.0030.00815.51
7.0.150.0060.00315.33
7.0.140.0050.04018.76
7.0.130.0030.00715.39
7.0.120.0000.01315.59
7.0.110.0070.00715.43
7.0.100.0130.00315.41
7.0.90.0070.00715.34
7.0.80.0090.00615.30
7.0.70.0040.04218.47
7.0.60.0050.03718.54
7.0.50.0050.04118.87
7.0.40.0040.04916.78
7.0.30.0070.04516.60
7.0.20.0030.03016.78
7.0.10.0090.04316.81
7.0.00.0050.04516.64
5.6.380.0070.00714.66
5.6.370.0030.01013.88
5.6.360.0040.01114.04
5.6.350.0090.00614.11
5.6.340.0100.00714.04
5.6.330.0040.00814.32
5.6.320.0000.01714.27
5.6.310.0090.00914.07
5.6.300.0130.00314.38
5.6.290.0090.00613.83
5.6.280.0050.05317.57
5.6.270.0030.01214.22
5.6.260.0030.00914.56
5.6.250.0070.00614.32
5.6.240.0070.01114.54
5.6.230.0070.01014.37
5.6.220.0070.04517.44
5.6.210.0030.04217.34
5.6.200.0020.05017.58
5.6.190.0070.02517.75
5.6.180.0070.04217.61
5.6.170.0030.03317.71
5.6.160.0100.03717.65
5.6.150.0100.04017.59
5.6.140.0030.05017.82
5.6.130.0050.05017.68
5.6.120.0040.04617.64
5.6.110.0000.05117.72
5.6.100.0070.04117.62
5.6.90.0070.03517.64
5.6.80.0060.03617.31
5.6.70.0050.04117.41
5.6.60.0100.04217.33
5.6.50.0030.02617.46
5.6.40.0030.02517.38
5.6.30.0040.02717.25
5.6.20.0080.02517.22
5.6.10.0070.02317.42
5.6.00.0080.02017.32
5.5.380.0030.00611.53
5.5.370.0000.01211.38
5.5.360.0090.03515.74
5.5.350.0060.03115.77
5.5.340.0030.04416.05
5.5.330.0080.03816.15
5.5.320.0050.02715.96
5.5.310.0050.04116.13
5.5.300.0070.02316.02
5.5.290.0060.04516.20
5.5.280.0030.02815.97
5.5.270.0030.02815.90
5.5.260.0120.04016.13
5.5.250.0020.04715.94
5.5.240.0080.03815.83
5.5.230.0040.04415.69
5.5.220.0050.04515.62
5.5.210.0020.03615.58
5.5.200.0050.02215.66
5.5.190.0020.02815.74
5.5.180.0030.02415.74
5.5.170.0060.00311.04
5.5.160.0000.02515.64
5.5.150.0050.01815.55
5.5.140.0000.02515.72
5.5.130.0060.03015.56
5.5.120.0030.02315.63
5.5.110.0070.02015.70
5.5.100.0030.02215.64
5.5.90.0090.03715.64
5.5.80.0020.03515.47
5.5.70.0050.02315.64
5.5.60.0020.02315.53
5.5.50.0020.03315.54
5.5.40.0020.02615.69
5.5.30.0020.02315.60
5.5.20.0060.03515.47
5.5.10.0040.02415.62
5.5.00.0070.02215.66
5.4.450.0060.03815.14
5.4.440.0050.03015.19
5.4.430.0050.04315.18
5.4.420.0050.04515.34
5.4.410.0110.03715.11
5.4.400.0020.04515.24
5.4.390.0030.04114.94
5.4.380.0060.04015.12
5.4.370.0010.03714.70
5.4.360.0040.02715.01
5.4.350.0100.03314.92
5.4.340.0020.04215.24
5.4.330.0000.01311.00
5.4.320.0060.01515.04
5.4.310.0020.02215.01
5.4.300.0010.02615.01
5.4.290.0030.02115.09
5.4.280.0030.02114.93
5.4.270.0030.02814.97
5.4.260.0020.02414.89
5.4.250.0030.02115.17
5.4.240.0060.02014.88
5.4.230.0020.02514.97
5.4.220.0050.02815.06
5.4.210.0020.02414.87
5.4.200.0000.02514.96
5.4.190.0020.02314.94
5.4.180.0040.02014.89
5.4.170.0050.02214.96
5.4.160.0000.02415.03
5.4.150.0050.03214.94
5.4.140.0070.01913.67
5.4.130.0030.02513.63
5.4.120.0030.04313.94
5.4.110.0050.02013.60
5.4.100.0080.01513.78
5.4.90.0080.01513.60
5.4.80.0020.02113.66
5.4.70.0050.02013.61
5.4.60.0020.02313.58
5.4.50.0090.03313.52
5.4.40.0030.02013.54
5.4.30.0020.03713.72
5.4.20.0050.01813.66
5.4.10.0040.02013.71
5.4.00.0050.01813.37
5.3.290.0040.02012.46
5.3.280.0020.02012.34
5.3.270.0020.02212.44
5.3.260.0010.02112.36
5.3.250.0040.02112.41
5.3.240.0000.02312.43
5.3.230.0010.02312.35
5.3.220.0020.02012.34
5.3.210.0020.02212.40
5.3.200.0040.03012.41
5.3.190.0000.03412.37
5.3.180.0020.02212.34
5.3.170.0010.02012.45
5.3.160.0020.02112.40
5.3.150.0020.02512.37
5.3.140.0030.01812.39
5.3.130.0040.02012.40
5.3.120.0040.02412.31
5.3.110.0040.02212.35
5.3.100.0050.03012.13
5.3.90.0000.02412.05
5.3.80.0030.03712.13
5.3.70.0000.02212.07
5.3.60.0030.02012.01
5.3.50.0040.01712.10
5.3.40.0000.04312.08
5.3.30.0020.03812.05
5.3.20.0020.04111.95
5.3.10.0050.04011.84
5.3.00.0050.03811.87
5.2.170.0020.01711.63
5.2.160.0050.01611.63
5.2.150.0020.03411.63
5.2.140.0020.03511.63
5.2.130.0040.01511.63
5.2.120.0060.02811.63
5.2.110.0060.03211.63
5.2.100.0040.03211.63
5.2.90.0020.02411.63
5.2.80.0000.03911.63
5.2.70.0060.02811.63
5.2.60.0070.03211.63
5.2.50.0030.03311.63
5.2.40.0020.03311.63
5.2.30.0070.03311.63
5.2.20.0040.03211.63
5.2.10.0060.02811.63
5.2.00.0040.03411.63
5.1.60.0030.03011.63
5.1.50.0030.02511.63
5.1.40.0050.02711.63
5.1.30.0040.02811.63
5.1.20.0020.02811.63
5.1.10.0060.02611.63
5.1.00.0040.02711.63
5.0.50.0020.02311.63
5.0.40.0000.02011.63
5.0.30.0050.02611.63
5.0.20.0040.02311.63
5.0.10.0020.02611.63
5.0.00.0040.03411.63
4.4.90.0040.01911.63
4.4.80.0030.01811.63
4.4.70.0000.01411.63
4.4.60.0020.01811.63
4.4.50.0020.02011.63
4.4.40.0020.02811.63
4.4.30.0020.01511.63
4.4.20.0000.01711.63
4.4.10.0000.01911.63
4.4.00.0040.02811.63
4.3.110.0020.01911.63
4.3.100.0000.01411.63
4.3.90.0000.01911.63
4.3.80.0020.02911.63
4.3.70.0030.01511.63
4.3.60.0030.01611.63
4.3.50.0020.01511.63
4.3.40.0050.02511.63
4.3.30.0000.02011.63
4.3.20.0000.01711.63
4.3.10.0020.02011.63
4.3.00.0010.01611.63

preferences:
44.61 ms | 401 KiB | 5 Q