3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pattern = "#/(?<moduleName>[^/]+)/layout/[^/]*\.xml$#i"; $filename = "/var/www/project/vendor/magento/theme-frontend-blank/Magento_Theme/layout/default_head_blocks.xml"; var_dump(preg_match($pattern, $filename, $matches), $matches); $pattern = "#/([^/]+)/layout/[^/]*\.xml$#i"; var_dump(preg_match($pattern, $filename, $matches), $matches);

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.0130.01016.63
8.3.50.0140.00718.37
8.3.40.0090.00919.18
8.3.30.0040.01118.85
8.3.20.0000.00824.18
8.3.10.0090.00024.66
8.3.00.0000.00826.16
8.2.180.0110.00425.92
8.2.170.0090.00618.96
8.2.160.0110.00722.96
8.2.150.0000.00825.66
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0080.00026.16
8.2.110.0100.00022.21
8.2.100.0090.00317.78
8.2.90.0000.00819.28
8.2.80.0040.00419.21
8.2.70.0040.00417.75
8.2.60.0080.00017.79
8.2.50.0070.00318.07
8.2.40.0050.00218.22
8.2.30.0000.00717.90
8.2.20.0040.00418.08
8.2.10.0050.00319.17
8.2.00.0070.00019.09
8.1.280.0090.00625.92
8.1.270.0070.00023.99
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0040.00423.80
8.1.230.0070.00417.71
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0000.00817.36
8.1.190.0000.00817.23
8.1.180.0030.00518.10
8.1.170.0050.00218.64
8.1.160.0070.00018.85
8.1.150.0050.00318.79
8.1.140.0070.00020.64
8.1.130.0000.00720.07
8.1.120.0050.00317.41
8.1.110.0000.00717.43
8.1.100.0060.00317.62
8.1.90.0040.00717.44
8.1.80.0000.00817.45
8.1.70.0070.00017.43
8.1.60.0060.00317.63
8.1.50.0090.00017.61
8.1.40.0040.00417.62
8.1.30.0030.00617.64
8.1.20.0040.00417.68
8.1.10.0030.00517.70
8.1.00.0040.00417.58
8.0.300.0060.00318.77
8.0.290.0000.00816.63
8.0.280.0000.00718.29
8.0.270.0040.00418.09
8.0.260.0000.00618.58
8.0.250.0000.00717.05
8.0.240.0070.00017.07
8.0.230.0070.00017.02
8.0.220.0040.00416.97
8.0.210.0040.00416.87
8.0.200.0000.00716.92
8.0.190.0040.00416.98
8.0.180.0070.00317.03
8.0.170.0030.00617.05
8.0.160.0040.00416.96
8.0.150.0000.00716.91
8.0.140.0000.00716.93
8.0.130.0000.00513.41
8.0.120.0060.00316.85
8.0.110.0000.00816.98
8.0.100.0000.00717.03
8.0.90.0070.00017.02
8.0.80.0080.00916.97
8.0.70.0080.01016.96
8.0.60.0100.00816.87
8.0.50.0090.00816.85
8.0.30.0060.00916.94
8.0.20.0080.00716.97
8.0.10.0070.01117.03
8.0.00.0110.00817.08
7.4.330.0040.00015.55
7.4.320.0000.00616.64
7.4.300.0030.00316.72
7.4.290.0030.00316.52
7.4.280.0000.00716.77
7.4.270.0040.00416.66
7.4.260.0030.00313.43
7.4.250.0040.00416.76
7.4.240.0040.00416.67
7.4.230.0070.00016.82
7.4.220.0070.00016.41
7.4.210.0060.00816.77
7.4.200.0070.01116.70
7.4.190.0090.00916.73
7.4.180.0070.01116.67
7.4.160.0080.00916.71
7.4.150.0080.01016.66
7.4.140.0090.00916.71
7.4.130.0090.01016.72
7.4.120.0110.00816.66
7.4.110.0120.00616.61
7.4.100.0080.01016.80
7.4.90.0070.01416.69
7.4.80.0080.00916.59
7.4.70.0110.00516.62
7.4.60.0050.01116.63
7.4.50.0110.00716.47
7.4.40.0090.01016.54
7.4.30.0080.01016.57
7.4.20.0080.00716.54
7.4.10.0070.01116.56
7.4.00.0080.01116.52
7.3.330.0030.00316.41
7.3.320.0030.00313.20
7.3.310.0000.00716.26
7.3.300.0000.00716.33
7.3.290.0070.01016.29
7.3.280.0080.00616.20
7.3.270.0100.00716.25
7.3.260.0110.00816.29
7.3.250.0080.01016.27
7.3.240.0060.01216.27
7.3.230.0040.01316.23
7.3.220.0070.00916.25
7.3.210.0070.00916.21
7.3.200.0110.00716.21
7.3.190.0110.00916.20
7.3.180.0090.00916.19
7.3.170.0080.01016.23
7.3.160.0070.01016.18
7.3.150.0070.00916.17
7.3.140.0100.00716.17
7.3.130.0080.00916.21
7.3.120.0090.00916.19
7.3.110.0070.01016.19
7.3.100.0060.01116.15
7.3.90.0110.00716.50
7.3.80.0110.00816.24
7.3.70.0080.01016.29
7.3.60.0070.01216.37
7.3.50.0060.01216.37
7.3.40.0110.00816.35
7.3.30.0070.00916.31
7.3.20.0090.01016.42
7.3.10.0100.00916.34
7.3.00.0090.00716.36

preferences:
64.37 ms | 400 KiB | 5 Q