3v4l.org

run code in 300+ PHP versions simultaneously
<?php function depbuild($name, $location, $suffix, $locale) { $locales = $locale ? array($locale, null) : array(null); $extensions = array_filter(array( ($location && $suffix) ? implode('-', array($location, $suffix)) : null, $suffix ?: null, $location ?: null, )); $extensions[] = null; $routing = array(); foreach ($locales as $lang) { foreach ($extensions as $extension) { echo implode('-', array_filter(array( $name, $extension, $lang, ))) . '.html'.PHP_EOL; } } } $name = 'foo'; $location = array(null, 'GL', 'AS'); $suffix = array(null, 'P','C'); $locale = array(null, 'fr_FR'); foreach($location as $loc) { foreach($suffix as $s) { foreach($locale as $l) { depbuild($name, $loc, $s, $l); echo PHP_EOL.'--------'.PHP_EOL; } } }

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.60.0120.01216.63
8.3.50.0100.00917.51
8.3.40.0180.00418.97
8.3.30.0080.00818.71
8.3.20.0030.00518.96
8.3.10.0000.00820.53
8.3.00.0000.01017.47
8.2.180.0140.00716.88
8.2.170.0090.00622.96
8.2.160.0100.00322.12
8.2.150.0110.00424.18
8.2.140.0000.00724.66
8.2.130.0070.00026.16
8.2.120.0040.00419.95
8.2.110.0090.00021.02
8.2.100.0080.00417.66
8.2.90.0000.00819.36
8.2.80.0040.00417.97
8.2.70.0000.00817.38
8.2.60.0040.00418.04
8.2.50.0040.00418.07
8.2.40.0050.00318.16
8.2.30.0030.00518.20
8.2.20.0070.00017.61
8.2.10.0080.00017.63
8.2.00.0030.00517.65
8.1.280.0060.00925.92
8.1.270.0080.00023.99
8.1.260.0110.00726.35
8.1.250.0040.00428.09
8.1.240.0050.00520.77
8.1.230.0070.00420.89
8.1.220.0040.00418.77
8.1.210.0030.00919.04
8.1.200.0000.01017.35
8.1.190.0030.00617.51
8.1.180.0050.00518.10
8.1.170.0030.00518.71
8.1.160.0070.00018.96
8.1.150.0040.00418.69
8.1.140.0080.00017.43
8.1.130.0050.00317.89
8.1.120.0040.00417.48
8.1.110.0040.00417.38
8.1.100.0070.00017.48
8.1.90.0000.00717.38
8.1.80.0070.00017.39
8.1.70.0000.00717.43
8.1.60.0000.00717.57
8.1.50.0000.00717.49
8.1.40.0050.00217.50
8.1.30.0000.00817.63
8.1.20.0040.00417.63
8.1.10.0040.00417.54
8.1.00.0050.00317.40
8.0.300.0000.00820.09
8.0.290.0040.00416.75
8.0.280.0030.00318.42
8.0.270.0000.00717.23
8.0.260.0000.00816.74
8.0.250.0050.00216.93
8.0.240.0030.00516.93
8.0.230.0070.00016.97
8.0.220.0000.00716.98
8.0.210.0040.00416.92
8.0.200.0000.00716.91
8.0.190.0040.00417.02
8.0.180.0040.00416.88
8.0.170.0040.00416.91
8.0.160.0040.00416.84
8.0.150.0040.00416.75
8.0.140.0030.00616.84
8.0.130.0030.00313.38
8.0.120.0080.00016.84
8.0.110.0040.00416.87
8.0.100.0000.00816.79
8.0.90.0080.00016.80
8.0.80.0110.00616.88
8.0.70.0040.00416.91
8.0.60.0050.00216.90
8.0.50.0000.00816.79
8.0.30.0100.01217.09
8.0.20.0110.00917.12
8.0.10.0000.00716.90
8.0.00.0100.01316.83
7.4.330.0000.00514.78
7.4.320.0060.00016.52
7.4.300.0000.00716.60
7.4.290.0040.00416.54
7.4.280.0090.00016.63
7.4.270.0040.00416.59
7.4.260.0030.00313.34
7.4.250.0000.00816.62
7.4.240.0050.00316.61
7.4.230.0040.00416.32
7.4.220.0120.00616.65
7.4.210.0110.00816.66
7.4.200.0000.00716.61
7.4.190.0000.00716.67
7.4.160.0060.01116.57
7.4.150.0160.01117.07
7.4.140.0140.00317.07
7.4.130.0050.01216.50
7.4.120.0090.00916.58
7.4.110.0140.01116.50
7.4.100.0110.00616.57
7.4.90.0090.00916.56
7.4.80.0090.00918.80
7.4.70.0030.01916.41
7.4.60.0080.01016.48
7.4.50.0000.00516.52
7.4.40.0100.00322.27
7.4.30.0140.00316.32
7.4.10.0130.00314.82
7.4.00.0080.00714.99
7.3.330.0040.00413.47
7.3.320.0000.00613.12
7.3.310.0030.00316.41
7.3.300.0050.00216.39
7.3.290.0000.01416.45
7.3.280.0080.00916.37
7.3.270.0140.01017.07
7.3.260.0110.01018.24
7.3.250.0090.01016.41
7.3.240.0120.01416.65
7.3.230.0150.00816.46
7.3.210.0060.01116.63
7.3.200.0030.01419.39
7.3.190.0140.00316.41
7.3.180.0030.01316.56
7.3.170.0100.00816.53
7.3.160.0040.01216.67
7.3.130.0030.01414.86
7.3.120.0080.00814.93
7.3.110.0030.01514.89
7.3.100.0030.01314.80
7.3.90.0100.00714.51
7.3.80.0100.00715.01
7.3.70.0090.00614.91
7.3.60.0080.00814.94
7.3.50.0030.00614.80
7.3.40.0030.01014.89
7.3.30.0120.00614.82
7.3.20.0040.01116.69
7.3.10.0000.01016.75
7.3.00.0070.00716.44
7.2.330.0040.01516.84
7.2.320.0120.00916.82
7.2.310.0100.01016.57
7.2.300.0100.01016.81
7.2.290.0080.01116.81
7.2.260.0030.01715.07
7.2.250.0040.01115.21
7.2.240.0040.01115.36
7.2.230.0030.01615.29
7.2.220.0110.00714.98
7.2.210.0090.00315.18
7.2.200.0100.00715.15
7.2.190.0110.00714.90
7.2.180.0050.00515.25
7.2.170.0060.01015.05
7.2.160.0000.01214.75
7.2.150.0030.00717.03
7.2.140.0040.01416.94
7.2.130.0060.00916.87
7.2.120.0040.00817.00
7.2.110.0070.00316.61
7.2.100.0070.00316.68
7.2.90.0040.01217.08
7.2.80.0030.01317.08
7.2.70.0040.01217.15
7.2.60.0060.01017.14
7.2.50.0000.01516.92
7.2.40.0000.01416.90
7.2.30.0070.00716.79
7.2.20.0030.00617.06
7.2.10.0100.00717.02
7.2.00.0020.01218.22
7.1.330.0110.00415.86
7.1.320.0090.00915.85
7.1.310.0060.00615.77
7.1.300.0100.00715.54
7.1.290.0070.00715.63
7.1.280.0070.00715.58
7.1.270.0000.01115.85
7.1.260.0030.01015.61
7.1.250.0060.01215.52
7.1.240.0110.00415.91
7.1.230.0060.00615.93
7.1.220.0090.00415.86
7.1.210.0080.00815.63
7.1.200.0070.00415.68
7.1.190.0000.01515.77
7.1.180.0100.00315.96
7.1.170.0090.00615.89
7.1.160.0030.01315.96
7.1.150.0050.00515.84
7.1.140.0140.00315.74
7.1.130.0150.00015.82
7.1.120.0000.01415.79
7.1.110.0090.00315.83
7.1.100.0040.01116.92
7.1.90.0040.01115.78
7.1.80.0030.01015.67
7.1.70.0060.00516.49
7.1.60.0150.00417.44
7.1.50.0120.00516.42
7.1.40.0040.01115.93
7.1.30.0060.00915.95
7.1.20.0080.00015.65
7.1.10.0040.00415.76
7.1.00.0030.04019.02
7.0.330.0070.00715.16
7.0.320.0000.01015.36
7.0.310.0060.00615.37
7.0.300.0070.00715.60
7.0.290.0000.00915.57
7.0.280.0040.01115.50
7.0.270.0060.01015.42
7.0.260.0090.00615.44
7.0.250.0030.00715.36
7.0.240.0000.01215.68
7.0.230.0110.00415.50
7.0.220.0080.00515.52
7.0.210.0080.00015.44
7.0.200.0040.00616.16
7.0.190.0070.00715.44
7.0.180.0040.00415.33
7.0.170.0120.00015.55
7.0.160.0040.00815.50
7.0.150.0030.00515.34
7.0.140.0070.04018.80
7.0.130.0060.00615.59
7.0.120.0000.00915.30
7.0.110.0030.00915.21
7.0.100.0060.00915.45
7.0.90.0070.01115.36
7.0.80.0070.01015.60
7.0.70.0030.01015.42
7.0.60.0080.02317.68
7.0.50.0060.02116.71
7.0.40.0050.02716.74
7.0.30.0110.04416.96
7.0.20.0040.04916.79
7.0.10.0080.02516.82
7.0.00.0070.04216.80
5.6.400.0070.00714.81
5.6.390.0040.00814.77
5.6.380.0030.00914.19
5.6.370.0000.01314.33
5.6.360.0060.00914.27
5.6.350.0000.01114.37
5.6.340.0130.00314.40
5.6.330.0050.00514.38
5.6.320.0130.00014.39
5.6.310.0000.01314.36
5.6.300.0030.00614.43
5.6.290.0040.01514.37
5.6.280.0070.03717.73
5.6.270.0030.00614.06
5.6.260.0030.01014.46
5.6.250.0030.01614.24
5.6.240.0080.00414.71
5.6.230.0030.01614.45
5.6.220.0040.01214.56
5.6.210.0070.02217.57
5.6.200.0070.04516.34
5.6.190.0050.03117.54
5.6.180.0030.04917.43
5.6.170.0080.03317.49
5.6.160.0050.02517.62
5.6.150.0020.03117.42
5.6.140.0050.02817.26
5.6.130.0050.03517.17
5.6.120.0110.02217.38
5.6.110.0000.03617.31
5.6.100.0060.02517.30
5.6.90.0070.03817.28
5.6.80.0060.04417.05
5.6.70.0050.02817.05
5.6.60.0050.04217.01
5.6.50.0130.03517.21
5.6.40.0080.02316.96
5.6.30.0100.04116.95
5.6.20.0120.03917.22
5.6.10.0030.04717.11
5.6.00.0070.04317.05
5.5.380.0090.00914.63
5.5.370.0090.00914.52
5.5.360.0030.01014.48
5.5.350.0220.03517.44
5.5.340.0070.04316.27
5.5.330.0070.04717.40
5.5.320.0100.04017.51
5.5.310.0090.04217.44
5.5.300.0030.02717.07
5.5.290.0080.02217.26
5.5.280.0080.02317.29
5.5.270.0060.03817.29
5.5.260.0080.02117.39
5.5.250.0020.03117.18
5.5.240.0080.02316.93
5.5.230.0050.04816.88
5.5.220.0000.02917.02
5.5.210.0100.03016.67
5.5.200.0030.02716.88
5.5.190.0080.04016.95
5.5.180.0070.04216.99
5.5.170.0030.01013.99
5.5.160.0110.04517.02
5.5.150.0100.01816.70
5.5.140.0080.02216.98
5.5.130.0030.03216.91
5.5.120.0070.02816.93
5.5.110.0120.02816.96
5.5.100.0030.04016.69
5.5.90.0020.03316.68
5.5.80.0080.04016.84
5.5.70.0070.02316.89
5.5.60.0070.03016.97
5.5.50.0030.02516.86
5.5.40.0060.02816.82
5.5.30.0060.04816.75
5.5.20.0050.03016.77
5.5.10.0110.02116.98
5.5.00.0070.04216.93
5.4.450.0050.03315.41
5.4.440.0030.02915.15
5.4.430.0050.02615.22
5.4.420.0060.03615.08
5.4.410.0050.03315.14
5.4.400.0020.03014.96
5.4.390.0020.02815.20
5.4.380.0020.03014.83
5.4.370.0090.03615.19
5.4.360.0030.02215.06
5.4.350.0070.04315.28
5.4.340.0060.02414.97
5.4.330.0040.00411.25
5.4.320.0080.04015.03
5.4.310.0090.01715.11
5.4.300.0100.01715.02
5.4.290.0070.02715.05
5.4.280.0020.02615.33
5.4.270.0080.03315.29
5.4.260.0060.02815.11
5.4.250.0050.03315.16
5.4.240.0050.04115.13
5.4.230.0050.02714.96
5.4.220.0050.02014.90
5.4.210.0080.03814.85
5.4.200.0020.02314.99
5.4.190.0020.02414.95
5.4.180.0070.02415.16
5.4.170.0220.01815.26
5.4.160.0040.02715.08
5.4.150.0070.03714.82
5.4.140.0020.04413.72
5.4.130.0100.02313.70
5.4.120.0040.03213.69
5.4.110.0070.02213.72
5.4.100.0050.04013.75
5.4.90.0050.03813.65
5.4.80.0030.03413.66
5.4.70.0020.02513.81
5.4.60.0050.02313.89
5.4.50.0090.03613.63
5.4.40.0030.02313.78
5.4.30.0080.04013.62
5.4.20.0050.02013.88
5.4.10.0050.03513.78
5.4.00.0040.02513.53
5.3.290.0080.04212.66
5.3.280.0030.02412.62
5.3.270.0070.02212.56
5.3.260.0040.03912.69
5.3.250.0080.02512.67
5.3.240.0050.03812.44
5.3.230.0050.02712.62
5.3.220.0020.04412.65
5.3.210.0050.03112.59
5.3.200.0090.01812.60
5.3.190.0030.04312.69
5.3.180.0080.03012.64
5.3.170.0080.03412.59
5.3.160.0100.03612.66
5.3.150.0100.03712.69
5.3.140.0020.03312.66
5.3.130.0080.03812.64
5.3.120.0030.02812.47
5.3.110.0110.02112.63
5.3.100.0040.03712.25
5.3.90.0060.03512.39
5.3.80.0030.04412.16
5.3.70.0070.02212.26
5.3.60.0050.02212.31
5.3.50.0060.04112.20
5.3.40.0050.04112.28
5.3.30.0130.03312.18
5.3.20.0080.02512.11
5.3.10.0030.03412.04
5.3.00.0060.03712.02
5.2.170.0070.06011.29
5.2.160.0030.06011.15
5.2.150.0000.06711.14
5.2.140.0100.05311.21
5.2.130.0030.06011.15
5.2.120.0000.06311.05
5.2.110.0130.05011.11
5.2.100.0030.06011.25
5.2.90.0070.05011.10
5.2.80.0070.06311.02
5.2.70.0130.04311.10
5.2.60.0000.03711.07
5.2.50.0130.03710.97
5.2.40.0130.02711.00
5.2.30.0030.03711.00
5.2.20.0000.04711.03
5.2.10.0070.05711.02
5.2.00.0070.02710.63
5.1.60.0030.05310.00
5.1.50.0130.04710.14
5.1.40.0000.0579.95
5.1.30.0070.05310.38
5.1.20.0070.04010.39
5.1.10.0070.04010.07
5.1.00.0030.0439.98
5.0.50.0000.0508.45
5.0.40.0070.0408.32
5.0.30.0070.0578.30
5.0.20.0030.0308.26
5.0.10.0030.0478.07
5.0.00.0000.0408.18
4.4.90.0000.0275.99
4.4.80.0030.0335.99
4.4.70.0000.0175.99
4.4.60.0030.0205.99
4.4.50.0030.0175.99
4.4.40.0030.0505.99
4.4.30.0000.0305.99
4.4.20.0070.0275.99
4.4.10.0030.0205.99
4.4.00.0030.0505.99
4.3.110.0030.0335.99
4.3.100.0070.0306.00
4.3.90.0000.0206.00
4.3.80.0070.0476.00
4.3.70.0030.0376.00
4.3.60.0000.0376.00
4.3.50.0030.0336.00
4.3.40.0030.0506.00
4.3.30.0030.0376.00
4.3.20.0030.0336.00
4.3.10.0000.0276.00
4.3.00.0000.0176.00

preferences:
35.76 ms | 400 KiB | 5 Q