3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($i = 0; $i < 1000; $i++) { $pathname = "sites/all/modules/foo$i/foo_sub$i/foo_sub$i.info.yml"; assert($pathname[0] !== '/' && array_key_exists('path', parse_url($pathname)) && count(array_keys(parse_url($pathname))) === 1, 'The relative path and filename is invalid. A path relative to the Drupal root is expected, for example: "core/modules/node/node.info.yml".'); }

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.0140.00316.50
8.3.50.0090.00616.62
8.3.40.0040.01118.70
8.3.30.0090.00618.71
8.3.20.0040.00422.27
8.3.10.0040.00422.04
8.3.00.0080.00022.50
8.2.180.0120.00618.41
8.2.170.0070.00722.96
8.2.160.0090.00922.30
8.2.150.0090.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00726.16
8.2.110.0060.00320.35
8.2.100.0040.00817.97
8.2.90.0030.00617.63
8.2.80.0060.00318.02
8.2.70.0000.00917.93
8.2.60.0060.00318.22
8.2.50.0030.00618.10
8.2.40.0060.00319.52
8.2.30.0000.00819.38
8.2.20.0000.00818.07
8.2.10.0040.00419.33
8.2.00.0040.00419.26
8.1.280.0070.00725.92
8.1.270.0000.00820.61
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0030.00620.96
8.1.230.0060.00618.97
8.1.220.0030.00617.74
8.1.210.0040.00418.77
8.1.200.0000.01117.22
8.1.190.0050.00517.35
8.1.180.0090.00018.10
8.1.170.0050.00318.65
8.1.160.0000.00818.94
8.1.150.0000.00918.79
8.1.140.0070.00321.00
8.1.130.0000.00720.18
8.1.120.0000.00817.46
8.1.110.0040.00417.47
8.1.100.0080.00017.42
8.1.90.0040.00817.49
8.1.80.0040.00417.38
8.1.70.0070.00017.36
8.1.60.0000.00817.54
8.1.50.0060.00317.52
8.1.40.0060.00317.57
8.1.30.0000.00917.50
8.1.20.0000.00817.61
8.1.10.0100.00317.56
8.1.00.0040.00417.48
8.0.300.0000.00819.73
8.0.290.0090.00016.63
8.0.280.0040.00418.45
8.0.270.0040.00417.30
8.0.260.0030.00320.09
8.0.250.0030.00416.86
8.0.240.0040.00416.79
8.0.230.0020.00516.91
8.0.220.0050.00216.96
8.0.210.0060.00316.94
8.0.200.0030.00716.91
8.0.190.0040.00416.89
8.0.180.0030.00616.83
8.0.170.0000.00916.80
8.0.160.0040.00417.02
8.0.150.0060.00316.78
8.0.140.0060.00316.81
8.0.130.0000.00613.34
8.0.120.0030.00516.76
8.0.110.0080.00016.86
8.0.100.0030.00516.77
8.0.90.0060.00316.78
8.0.80.0100.00616.79
8.0.70.0030.00516.80
8.0.60.0050.00316.70
8.0.50.0000.00816.86
8.0.30.0120.00917.12
8.0.20.0190.00817.12
8.0.10.0030.00617.01
8.0.00.0110.01116.86
7.4.330.0030.00316.79
7.4.320.0080.00016.53
7.4.300.0040.00416.41
7.4.290.0040.00416.53
7.4.280.0030.00516.50
7.4.270.0040.00416.51
7.4.260.0030.00313.25
7.4.250.0040.00416.37
7.4.240.0040.00416.44
7.4.230.0000.00716.31
7.4.220.0000.00716.50
7.4.210.0100.00716.51
7.4.200.0000.00816.63
7.4.140.0120.00917.86
7.4.130.0050.01516.48
7.4.120.0050.01416.64
7.4.110.0090.01416.50
7.4.100.0100.01016.68
7.4.90.0070.01116.48
7.4.80.0090.00919.39
7.4.70.0030.01416.42
7.4.60.0150.00416.55
7.4.50.0030.01116.70
7.4.40.0070.01016.56
7.4.10.0100.01014.86
7.4.00.0050.01214.83
7.3.330.0030.00716.30
7.3.320.0000.00613.07
7.3.310.0000.00816.43
7.3.300.0040.00416.36
7.3.290.0020.00516.37
7.3.260.0100.00816.43
7.3.240.0110.00816.55
7.3.230.0180.00016.41
7.3.210.0030.02016.48
7.3.200.0120.00916.67
7.3.190.0150.01016.40
7.3.180.0130.00616.43
7.3.170.0120.00616.40
7.3.160.0140.00316.40
7.3.130.0120.00615.05
7.3.120.0060.01214.89
7.3.110.0130.00315.14
7.3.100.0030.01314.88
7.3.90.0060.00914.77
7.3.80.0040.01114.80
7.3.70.0090.00814.99
7.3.60.0100.00814.84
7.3.50.0070.00714.77
7.3.40.0040.01214.79
7.3.30.0040.01014.78
7.3.20.0100.00715.44
7.3.10.0110.00715.44
7.3.00.0050.01115.49
7.2.330.0110.00716.53
7.2.320.0060.01016.67
7.2.310.0090.00916.48
7.2.300.0030.01516.87
7.2.290.0030.01416.68
7.2.260.0090.00914.84
7.2.250.0030.01315.29
7.2.240.0090.00614.88
7.2.230.0090.00615.12
7.2.220.0040.01115.20
7.2.210.0040.01214.98
7.2.200.0060.00814.92
7.2.190.0080.00815.19
7.2.180.0070.00814.96
7.2.170.0040.01214.96
7.2.160.0090.00614.93
7.2.150.0060.00915.60
7.2.140.0110.00715.74
7.2.130.0120.00615.85
7.2.120.0100.00915.67
7.2.110.0070.01315.82
7.2.100.0090.01115.80
7.2.90.0070.01115.70
7.2.80.0100.00715.68
7.2.70.0050.01215.61
7.2.60.0080.01015.67
7.2.50.0060.01015.75
7.2.40.0120.00715.77
7.2.30.0100.00815.63
7.2.20.0050.01215.48
7.2.10.0070.01115.67
7.2.00.0060.01115.73
7.1.330.0040.01115.74
7.1.320.0120.00914.48
7.1.310.0080.00814.54
7.1.300.0100.00714.50
7.1.290.0130.01014.56
7.1.280.0090.00614.48
7.1.270.0040.01114.69
7.1.260.0060.01114.61
7.1.250.0090.00814.69
7.1.240.0060.01015.75
7.1.230.0080.00815.89
7.1.220.0030.01315.91
7.1.210.0030.01015.87
7.1.200.0070.00415.77
7.1.190.0000.01415.61
7.1.180.0060.01115.76
7.1.170.0070.00715.93
7.1.160.0000.01116.00
7.1.150.0040.01415.87
7.1.140.0030.01315.96
7.1.130.0000.01416.00
7.1.120.0030.01016.06
7.1.110.0070.01015.74
7.1.100.0060.00915.77
7.1.90.0030.01416.00
7.1.80.0070.01715.89
7.1.70.0060.01615.89
7.1.60.0030.01315.89
7.1.50.0000.01315.82
7.1.40.0060.00616.04
7.1.30.0030.01015.80
7.1.20.0030.01015.84
7.1.10.0000.01415.62
7.1.00.0040.01515.91

preferences:
70.3 ms | 400 KiB | 5 Q