3v4l.org

run code in 300+ PHP versions simultaneously
<?php $words = array("man", "map", "php", "pop", "pnp"); $patterns = array("ma?", "p?p"); foreach ($patterns as $pattern) { $regex = '\b(' . str_replace('?', '.', $pattern) . ')\b'; $count = preg_match_all("/$regex/", implode('-', $words), $matches); echo "$pattern matched $count times on " . implode(',', $matches[1]) . ".\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.3.60.0120.00618.56
8.3.50.0130.00317.50
8.3.40.0090.00918.95
8.3.30.0070.00718.93
8.3.20.0000.00721.69
8.3.10.0050.00320.14
8.3.00.0040.00421.87
8.2.180.0090.00916.75
8.2.170.0180.00022.96
8.2.160.0070.00720.35
8.2.150.0060.00324.18
8.2.140.0080.00024.66
8.2.130.0040.00726.16
8.2.120.0000.00721.00
8.2.110.0000.00919.30
8.2.100.0060.00618.03
8.2.90.0030.00518.09
8.2.80.0000.00817.97
8.2.70.0060.00317.80
8.2.60.0060.00318.22
8.2.50.0070.00318.10
8.2.40.0040.00419.33
8.2.30.0040.00420.61
8.2.20.0000.00918.05
8.2.10.0040.00419.41
8.2.00.0000.00718.25
8.1.280.0040.01425.92
8.1.270.0040.00420.45
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0060.00322.14
8.1.230.0060.00622.56
8.1.220.0060.00317.74
8.1.210.0000.00818.84
8.1.200.0060.00317.48
8.1.190.0000.00917.23
8.1.180.0000.00818.10
8.1.170.0030.00618.80
8.1.160.0040.00418.95
8.1.150.0000.00818.82
8.1.140.0040.00418.96
8.1.130.0000.00717.51
8.1.120.0000.00717.54
8.1.110.0030.00517.52
8.1.100.0070.00017.46
8.1.90.0090.00017.64
8.1.80.0000.00817.69
8.1.70.0050.00317.62
8.1.60.0040.00417.76
8.1.50.0040.00417.58
8.1.40.0040.00417.69
8.1.30.0000.00917.76
8.1.20.0040.00417.88
8.1.10.0080.00017.73
8.1.00.0040.00417.64
8.0.300.0000.00820.02
8.0.290.0080.00017.00
8.0.280.0080.00018.45
8.0.270.0080.00017.26
8.0.260.0000.00716.96
8.0.250.0030.00317.02
8.0.240.0070.00017.04
8.0.230.0000.00817.00
8.0.220.0000.00717.04
8.0.210.0070.00016.98
8.0.200.0000.00717.15
8.0.190.0000.00717.07
8.0.180.0000.00817.09
8.0.170.0070.00317.06
8.0.160.0060.00316.98
8.0.150.0000.00716.99
8.0.140.0040.00416.98
8.0.130.0050.00013.50
8.0.120.0040.00417.05
8.0.110.0040.00416.97
8.0.100.0000.00717.02
8.0.90.0000.00717.06
8.0.80.0100.00617.00
8.0.70.0000.00717.11
8.0.60.0080.00017.13
8.0.50.0040.00416.96
8.0.30.0060.01117.33
8.0.20.0140.00917.23
8.0.10.0070.00017.16
8.0.00.0090.01216.97
7.4.330.0020.00215.55
7.4.320.0030.00316.67
7.4.300.0060.00016.66
7.4.290.0000.00716.83
7.4.280.0040.00416.73
7.4.270.0030.00316.82
7.4.260.0040.00416.73
7.4.250.0080.00016.68
7.4.240.0050.00216.78
7.4.230.0000.00716.72
7.4.220.0050.00216.71
7.4.210.0120.00616.88
7.4.200.0070.00016.95
7.4.160.0110.00816.66
7.4.130.0160.00316.84
7.4.120.0140.00716.72
7.4.110.0110.00716.66
7.4.100.0040.01516.79
7.4.90.0070.01016.66
7.4.80.0060.01219.39
7.4.70.0110.00516.73
7.4.60.0090.00916.66
7.4.50.0030.00816.76
7.4.40.0060.01216.67
7.4.00.0050.00814.84
7.3.330.0030.00313.43
7.3.320.0000.00613.41
7.3.310.0000.00716.56
7.3.300.0070.00016.34
7.3.290.0030.00316.54
7.3.280.0090.00816.48
7.3.260.0110.00716.68
7.3.230.0150.00916.62
7.3.210.0070.01016.62
7.3.200.0120.00316.45
7.3.190.0110.00616.87
7.3.180.0090.00916.60
7.3.170.0100.00716.78
7.3.160.0050.01116.50
7.3.120.0030.01315.22
7.3.110.0030.01314.88
7.3.100.0070.00714.91
7.3.90.0160.00315.04
7.3.80.0000.01515.08
7.3.70.0040.01115.15
7.3.60.0000.01315.10
7.3.50.0070.00714.94
7.3.40.0110.00314.99
7.3.30.0080.01014.69
7.3.20.0110.00616.99
7.3.10.0060.00816.90
7.3.00.0050.00816.81
7.2.330.0090.00916.98
7.2.320.0130.00616.88
7.2.310.0050.01116.93
7.2.300.0070.01016.88
7.2.290.0120.01216.91
7.2.250.0090.00915.24
7.2.240.0090.00915.27
7.2.230.0040.01115.08
7.2.220.0080.00815.46
7.2.210.0100.00715.41
7.2.200.0030.01215.31
7.2.190.0000.01415.20
7.2.180.0030.00915.06
7.2.170.0080.00715.26
7.2.160.0070.01615.08
7.2.150.0100.01417.23
7.2.140.0120.00317.03
7.2.130.0030.01017.31
7.2.120.0140.00016.97
7.2.110.0100.00317.11
7.2.100.0110.00417.12
7.2.90.0030.01017.30
7.2.80.0070.00717.18
7.2.70.0040.01117.22
7.2.60.0130.00317.13
7.2.50.0100.00516.80
7.2.40.0070.00717.19
7.2.30.0130.00016.94
7.2.20.0130.00317.04
7.2.10.0000.01517.11
7.2.00.0050.00916.91
7.1.330.0070.00715.66
7.1.320.0000.01015.98
7.1.310.0060.00916.25
7.1.300.0050.00515.94
7.1.290.0040.00716.08
7.1.280.0120.00816.13
7.1.270.0070.00415.85
7.1.260.0030.00915.95
7.1.250.0100.00716.04

preferences:
32.7 ms | 401 KiB | 5 Q