3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); /** * @param array $elements * @param array $extra * * @return Generator */ function gen(array $elements, array $extra = []): \Generator { foreach ($elements as $i => $head) { foreach (gen(array_slice($elements, $i + 1), $extra) as $tail) { yield array_merge([$head], $tail); } } yield $extra; } foreach (gen(['O', 'U', 'W', 'P'], ['template']) as $path) { echo implode(' / ', $path), "\n"; }

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.5.00.0130.00819.77
8.4.150.0030.00014.05
8.4.140.0110.00917.68
8.4.130.0100.01017.66
8.4.120.0170.00222.38
8.4.110.0120.00818.61
8.4.100.0110.00917.52
8.4.90.0130.00718.58
8.4.80.0110.00618.02
8.4.70.0130.00817.91
8.4.60.0100.00818.89
8.4.50.0070.00217.77
8.4.40.0060.01317.71
8.4.30.0140.00417.67
8.4.20.0030.00619.76
8.4.10.0160.00017.57
8.3.280.0100.01018.22
8.3.270.0150.00516.78
8.3.260.0120.00816.39
8.3.250.0120.00718.84
8.3.240.0110.00716.72
8.3.230.0120.00616.42
8.3.220.0080.01117.01
8.3.210.0080.00616.49
8.3.200.0060.00316.72
8.3.190.0070.00717.11
8.3.180.0100.00718.63
8.3.170.0090.00919.01
8.3.160.0070.01116.53
8.3.150.0100.01018.82
8.3.140.0000.00816.50
8.3.130.0150.00016.61
8.3.120.0060.00320.74
8.3.110.0000.00920.94
8.3.100.0060.00316.60
8.3.90.0040.01126.77
8.3.80.0040.00416.50
8.3.70.0120.00616.58
8.3.60.0070.01418.31
8.3.50.0050.01219.23
8.3.40.0070.01018.66
8.3.30.0130.00318.67
8.3.20.0040.00421.90
8.3.10.0040.00420.71
8.3.00.0140.00021.90
8.2.290.0060.00720.61
8.2.280.0050.00418.41
8.2.270.0070.01117.16
8.2.260.0040.00420.57
8.2.250.0040.00418.14
8.2.240.0100.00017.09
8.2.230.0130.00022.58
8.2.220.0000.00824.06
8.2.210.0070.01126.77
8.2.200.0060.00316.63
8.2.190.0140.00716.88
8.2.180.0170.00325.92
8.2.170.0120.00918.96
8.2.160.0160.00022.96
8.2.150.0050.00224.18
8.2.140.0000.00724.66
8.2.130.0000.00820.55
8.2.120.0000.00626.35
8.2.110.0070.00319.30
8.2.100.0060.00617.84
8.2.90.0080.00019.34
8.2.80.0060.00317.97
8.2.70.0040.00417.63
8.2.60.0030.00617.93
8.2.50.0040.00418.10
8.2.40.0040.00420.42
8.2.30.0040.00419.21
8.2.20.0070.00018.11
8.2.10.0000.00717.94
8.2.00.0000.00718.04
8.1.330.0110.00720.16
8.1.320.0100.01015.94
8.1.310.0090.00918.59
8.1.300.0040.00418.30
8.1.290.0090.00030.84
8.1.280.0140.00025.92
8.1.270.0000.00923.92
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0060.00322.13
8.1.230.0080.00417.83
8.1.220.0040.00417.79
8.1.210.0000.01118.77
8.1.200.0070.00317.35
8.1.190.0030.00517.38
8.1.180.0040.00418.10
8.1.170.0000.00818.50
8.1.160.0040.00418.81
8.1.150.0000.00718.80
8.1.140.0000.00719.20
8.1.130.0000.00718.88
8.1.120.0040.00417.52
8.1.110.0050.00317.45
8.1.100.0000.00817.40
8.1.90.0040.00417.41
8.1.80.0070.00017.35
8.1.70.0000.00717.38
8.1.60.0060.00317.48
8.1.50.0030.00617.39
8.1.40.0000.00817.41
8.1.30.0000.00817.48
8.1.20.0050.00317.55
8.1.10.0000.00917.52
8.1.00.0040.00417.49
8.0.300.0000.00918.77
8.0.290.0000.00716.75
8.0.280.0000.00718.45
8.0.270.0000.00917.27
8.0.260.0000.00716.75
8.0.250.0040.00416.96
8.0.240.0000.00716.84
8.0.230.0040.00416.93
8.0.220.0000.00916.91
8.0.210.0040.00416.90
8.0.200.0030.00316.95
8.0.190.0000.00916.89
8.0.180.0000.00716.95
8.0.170.0040.00416.93
8.0.160.0040.00416.84
8.0.150.0030.00316.90
8.0.140.0000.00916.74
8.0.130.0000.00513.34
8.0.120.0050.00216.92
8.0.110.0000.00716.84
8.0.100.0000.00716.78
8.0.90.0020.00516.90
8.0.80.0100.00616.94
8.0.70.0050.00216.91
8.0.60.0000.00716.89
8.0.50.0080.00016.91
8.0.30.0100.00817.10
8.0.20.0090.01117.40
8.0.10.0040.00416.98
8.0.00.0120.00716.79
7.4.330.0020.00215.55
7.4.320.0060.00316.59
7.4.300.0000.00616.47
7.4.290.0070.00016.65
7.4.280.0030.00616.55
7.4.270.0000.00816.66
7.4.260.0070.00016.55
7.4.250.0030.00316.41
7.4.240.0000.00816.50
7.4.230.0070.00016.30
7.4.220.0000.00716.58
7.4.210.0080.00616.71
7.4.200.0000.00716.72
7.4.160.0090.00816.58
7.4.150.0120.00617.40
7.4.140.0130.00517.86
7.4.130.0090.00916.60
7.4.120.0100.01216.59
7.4.110.0040.01216.63
7.4.100.0070.01016.70
7.4.90.0080.00816.48
7.4.80.0040.01619.39
7.4.70.0110.00816.49
7.4.60.0060.01116.53
7.4.50.0030.01316.51
7.4.40.0090.01316.51
7.4.30.0120.00616.54
7.4.10.0150.00315.17
7.4.00.0090.00615.03
7.3.330.0060.00013.45
7.3.320.0030.00513.14
7.3.310.0030.00316.19
7.3.300.0060.00016.48
7.3.290.0060.00916.42
7.3.280.0060.00916.40
7.3.270.0120.00617.40
7.3.260.0090.00816.38
7.3.250.0100.00816.46
7.3.240.0060.01116.50
7.3.230.0120.00616.45
7.3.210.0080.00916.29
7.3.200.0140.00316.65
7.3.190.0060.01416.60
7.3.180.0110.00516.44
7.3.170.0120.00616.49
7.3.160.0100.00716.38
7.3.130.0100.00714.99
7.3.120.0100.00714.69
7.3.110.0090.00914.90
7.3.100.0090.00614.73
7.3.90.0070.00714.75
7.3.80.0070.00714.95
7.3.70.0070.00714.98
7.3.60.0000.01514.97
7.3.50.0050.00814.70
7.3.40.0040.00414.71
7.3.30.0070.00314.80
7.3.20.0070.00316.69
7.3.10.0060.00616.78
7.3.00.0040.01116.72
7.2.330.0120.00616.80
7.2.320.0090.02016.81
7.2.310.0030.01716.39
7.2.300.0050.01316.67
7.2.290.0080.00816.70
7.2.260.0100.01015.18
7.2.250.0100.00715.05
7.2.240.0090.00314.98
7.2.230.0140.00314.89
7.2.220.0100.00315.03
7.2.210.0000.01215.10
7.2.200.0000.01415.17
7.2.190.0000.01515.04
7.2.180.0030.01015.30
7.2.170.0070.00715.07
7.2.160.0080.00315.25
7.2.150.0080.00517.06
7.2.140.0060.00616.76
7.2.130.0040.00716.94
7.2.120.0000.01317.02
7.2.110.0060.00817.03
7.2.100.0030.00917.03
7.2.90.0040.01116.63
7.2.80.0070.00717.09
7.2.70.0030.01216.97
7.2.60.0030.01016.97
7.2.50.0000.01217.00
7.2.40.0110.00417.03
7.2.30.0060.00316.75
7.2.20.0040.01217.00
7.2.10.0030.01616.70
7.2.00.0110.01117.63
7.1.330.0090.00315.89
7.1.320.0120.00615.76
7.1.310.0030.00915.71
7.1.300.0030.01415.88
7.1.290.0040.01215.86
7.1.280.0070.00715.87
7.1.270.0060.00615.93
7.1.260.0040.00815.79
7.1.250.0060.00315.72
7.1.240.0090.00315.75
7.1.230.0090.00315.70
7.1.220.0060.00615.49
7.1.210.0120.00315.83
7.1.200.0080.00415.77
7.1.190.0030.00715.65
7.1.180.0000.01015.62
7.1.170.0040.01115.83
7.1.160.0140.00015.88
7.1.150.0070.00415.48
7.1.140.0100.00715.86
7.1.130.0030.01015.87
7.1.120.0090.00716.41
7.1.110.0130.00716.05
7.1.100.0110.01116.04
7.1.90.0070.01015.93
7.1.80.0120.00716.08
7.1.70.0090.00515.33
7.1.60.0220.01124.49
7.1.50.0160.00924.14
7.1.40.0370.00723.94
7.1.30.0160.01324.21
7.1.20.0210.00724.30
7.1.10.0100.01015.35
7.1.00.0070.01215.36
7.0.330.0000.01015.42
7.0.320.0090.00615.56
7.0.310.0090.00615.39
7.0.300.0070.00715.20
7.0.290.0100.00315.65
7.0.280.0070.00415.45
7.0.270.0070.00715.45
7.0.260.0070.00715.60
7.0.250.0130.00315.19
7.0.240.0000.01815.61
7.0.230.0060.00615.45
7.0.220.0030.00915.57
7.0.210.0100.00315.45
7.0.200.0040.00415.40
7.0.190.0040.00415.56
7.0.180.0030.01015.44
7.0.170.0000.01015.20
7.0.160.0040.00815.44
7.0.150.0030.01015.52
7.0.140.0030.00615.57
7.0.130.0030.00815.57
7.0.120.0030.00615.38
7.0.110.0000.01315.52
7.0.100.0090.00615.58
7.0.90.0070.00315.34
7.0.80.0030.00615.55
7.0.70.0030.01015.55
7.0.60.0040.01115.40
7.0.50.0040.01115.61
7.0.40.0000.01413.63
7.0.30.0030.01013.54
7.0.20.0070.01113.32
7.0.10.0070.00713.56
7.0.00.0070.01013.40
5.6.400.0100.00013.93
5.6.390.0030.01014.30
5.6.380.0100.00014.20
5.6.370.0000.01413.98
5.6.360.0100.00013.95
5.6.350.0100.00014.11
5.6.340.0030.01314.42
5.6.330.0040.00714.11
5.6.320.0060.00614.36
5.6.310.0030.00613.99
5.6.300.0030.01013.76
5.6.290.0040.00814.12
5.6.280.0060.00314.07
5.6.270.0060.00914.32
5.6.260.0130.00314.34
5.6.250.0120.00314.37
5.6.240.0070.00714.17
5.6.230.0070.00714.27
5.6.220.0040.01114.10
5.6.210.0040.00414.34
5.6.200.0030.01014.21
5.6.190.0070.01014.15
5.6.180.0140.00014.21
5.6.170.0070.00413.93
5.6.160.0030.01514.34
5.6.150.0000.01013.96
5.6.140.0090.00313.98
5.6.130.0030.01214.10
5.6.120.0030.00614.22
5.6.110.0050.00813.99
5.6.100.0060.00614.10
5.6.90.0030.01013.89
5.6.80.0060.00613.97
5.6.70.0090.00314.02
5.6.60.0040.01513.97
5.6.50.0000.00913.89
5.6.40.0030.01014.09
5.6.30.0080.00013.95
5.6.20.0060.00614.17
5.6.10.0080.00814.05
5.6.00.0000.00813.85

preferences:
162.65 ms | 403 KiB | 5 Q