3v4l.org

run code in 300+ PHP versions simultaneously
<?php $haystack = 'There are stores attached: Store1 (Detached) **28876.Mazon** (Detached) 28455.Targo (Detached) 28389.Walmo (Detached)'; foreach (['Mazon', 'Targo', 'Walmo', 'Foo'] as $needle) { printf( "%s => %s\n", $needle, preg_match('#\d+(?=\.' . preg_quote($needle) . ')#', $haystack, $m) ? $m[0] : 'no match' ); }

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.10.0100.01021.31
8.5.00.0150.00820.27
8.4.150.0090.00316.84
8.4.140.0180.00917.77
8.4.130.0110.00719.68
8.4.120.0130.00824.03
8.4.110.0120.00822.70
8.4.100.0110.01018.16
8.4.90.0080.00218.48
8.4.80.0090.00818.01
8.4.70.0030.00717.93
8.4.60.0130.00720.48
8.4.50.0140.00719.65
8.4.40.0110.00318.84
8.4.30.0130.00623.95
8.4.20.0130.00719.69
8.4.10.0000.00919.77
8.3.280.0110.00918.66
8.3.270.0090.01216.81
8.3.260.0090.00716.70
8.3.250.0110.01018.44
8.3.240.0090.01017.08
8.3.230.0100.00816.98
8.3.220.0110.00317.37
8.3.210.0110.00816.96
8.3.200.0070.00216.82
8.3.190.0090.01017.20
8.3.180.0060.00316.70
8.3.170.0060.01317.03
8.3.160.0140.00418.74
8.3.150.0120.00616.99
8.3.140.0050.00318.47
8.3.130.0080.01116.57
8.3.120.0260.00016.74
8.3.110.0180.00316.86
8.3.100.0330.00316.46
8.3.90.0140.00916.55
8.3.80.0230.00416.60
8.3.70.0180.00616.78
8.3.60.0200.00316.65
8.3.50.0390.00416.42
8.3.40.0330.00617.77
8.3.30.0170.00217.78
8.3.20.0210.00717.43
8.3.10.0200.00817.30
8.3.00.0100.00317.57
8.2.290.0110.00820.52
8.2.280.0090.00720.67
8.2.270.0070.01316.97
8.2.260.0050.00317.17
8.2.250.0050.00316.96
8.2.240.0150.00816.69
8.2.230.0210.00716.41
8.2.220.0140.01016.44
8.2.210.0140.00516.37
8.2.200.0240.00016.63
8.2.190.0250.00616.43
8.2.180.0160.00516.50
8.2.170.0140.00617.61
8.2.160.0250.00717.66
8.2.150.0100.01017.58
8.2.140.0340.00917.52
8.2.130.0200.00817.59
8.2.120.0140.00717.66
8.2.110.0270.01017.64
8.2.100.0390.01017.66
8.2.90.0330.01517.68
8.2.80.0300.00317.77
8.2.70.0210.01517.46
8.2.60.0210.00617.39
8.2.50.0220.01017.45
8.2.40.0190.00017.64
8.2.30.0130.00517.73
8.2.20.0180.00917.38
8.2.10.0120.00617.42
8.2.00.0160.00417.48
8.1.330.0160.00422.06
8.1.320.0110.01516.19
8.1.310.0090.00918.53
8.1.300.0280.00016.25
8.1.290.0220.00316.25
8.1.280.0190.00316.36
8.1.270.0260.00517.45
8.1.260.0320.01117.43
8.1.250.0330.00017.30
8.1.240.0360.00417.43
8.1.230.0150.01017.26
8.1.220.0140.00317.36
8.1.210.0270.00317.11
8.1.200.0130.00417.41
8.1.190.0180.00017.27
8.1.180.0150.00717.21
8.1.170.0190.00017.44
8.1.160.0130.00417.33
8.1.150.0240.01417.49
8.1.140.0280.00017.13
8.1.130.0270.00317.25
8.1.120.0260.00017.29
8.1.110.0130.00417.41
8.1.100.0150.01217.37
8.1.90.0260.00317.22
8.1.80.0110.00617.16
8.1.70.0250.00717.36
8.1.60.0310.01017.54
8.1.50.0150.00517.24
8.1.40.0200.00217.64
8.1.30.0180.00917.71
8.1.20.0210.01017.36
8.1.10.0390.00017.71
8.1.00.0150.00817.55

preferences:
72.37 ms | 403 KiB | 5 Q