3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str ="Model number is FM223-56/89."; $model ="FM223-56/89."; $pattern = '/(?!\B\w)' . preg_quote($model, '/') . '(?<!\w\B)/'; echo preg_match($pattern, $str);

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.4.140.0140.00917.65
8.4.130.0130.00718.82
8.4.120.0120.00424.04
8.4.110.0140.00619.16
8.4.100.0130.00618.63
8.4.90.0150.00622.22
8.4.80.0060.00318.57
8.4.70.0110.00918.79
8.4.60.0070.01218.65
8.4.50.0100.00920.62
8.4.40.0100.01018.05
8.4.30.0090.00318.68
8.4.20.0140.00717.98
8.4.10.0070.01417.87
8.3.270.0120.00816.70
8.3.260.0160.00516.79
8.3.250.0110.00818.93
8.3.240.0160.00317.22
8.3.230.0120.00716.47
8.3.220.0110.00818.80
8.3.210.0140.00916.74
8.3.200.0020.00716.52
8.3.190.0080.01317.39
8.3.180.0080.01018.85
8.3.170.0140.00016.72
8.3.160.0150.00317.20
8.3.150.0070.01116.71
8.3.140.0110.00718.79
8.3.130.0040.00418.48
8.3.120.0040.00419.06
8.3.110.0070.01020.94
8.3.100.0040.00424.06
8.3.90.0040.00426.77
8.3.80.0050.00516.71
8.3.70.0240.00518.18
8.3.60.0280.00318.32
8.3.50.0140.00619.23
8.3.40.0260.00518.47
8.3.30.0230.00718.38
8.3.20.0200.00421.08
8.3.10.0180.00421.32
8.3.00.0150.00822.06
8.2.290.0050.00420.25
8.2.280.0120.00618.45
8.2.270.0070.00416.68
8.2.260.0150.00316.43
8.2.250.0040.00417.55
8.2.240.0080.00017.44
8.2.230.0110.00022.58
8.2.220.0090.00037.54
8.2.210.0120.00626.77
8.2.200.0090.00016.63
8.2.190.0230.00518.00
8.2.180.0170.00721.95
8.2.170.0210.00318.53
8.2.160.0260.00220.47
8.2.150.0200.00721.82
8.2.140.0160.01221.32
8.2.130.0160.01022.06
8.2.120.0190.00019.55
8.2.110.0150.00519.54
8.2.100.0210.00218.93
8.2.90.0160.00818.62
8.2.80.0160.00617.97
8.2.70.0160.00517.86
8.2.60.0140.00617.73
8.2.50.0140.00517.73
8.2.40.0110.00518.16
8.2.30.0100.00417.71
8.2.20.0110.00218.25
8.2.10.0090.00717.71
8.2.00.0120.00618.04
8.1.330.0130.00622.02
8.1.320.0130.00617.79
8.1.310.0030.00516.52
8.1.300.0050.00318.71
8.1.290.0110.00030.84
8.1.280.0260.00721.95
8.1.270.0180.00820.98
8.1.260.0290.00422.16
8.1.250.0210.00323.03
8.1.240.0160.00319.48
8.1.230.0160.00520.08
8.1.220.0160.00717.87
8.1.210.0140.00418.37
8.1.200.0070.00917.72
8.1.190.0090.00617.33
8.1.180.0100.00617.53
8.1.170.0110.00417.63
8.1.160.0120.00317.77
8.1.150.0120.00417.64
8.1.140.0110.00517.55
8.1.130.0120.00517.55
8.1.120.0110.00617.49
8.1.110.0110.00517.57
8.1.100.0100.00617.53
8.1.90.0130.00417.43
8.1.80.0110.00517.55
8.1.70.0110.00517.59
8.1.60.0120.00417.65
8.1.50.0120.00517.52
8.1.40.0120.00517.46
8.1.30.0140.00317.61
8.1.20.0120.00717.57
8.1.10.0140.00617.49
8.1.00.0160.00517.45
8.0.300.0120.00318.37
8.0.290.0080.00617.36
8.0.280.0130.00517.59
8.0.270.0130.00317.58
8.0.260.0120.00416.95
8.0.250.0110.00417.03
8.0.240.0130.00316.96
8.0.230.0130.00317.11
8.0.220.0130.00416.98
8.0.210.0100.00617.05
8.0.200.0120.00517.05
8.0.190.0120.00516.99
8.0.180.0120.00517.00
8.0.170.0140.00316.98
8.0.160.0170.00116.98
8.0.150.0130.00617.01
8.0.140.0160.00316.96
8.0.130.0150.00316.96
8.0.120.0120.00617.04
8.0.110.0140.00716.96
8.0.100.0140.00516.95
8.0.90.0130.00616.95
8.0.80.0140.00516.95
8.0.70.0140.00516.89
8.0.60.0140.00516.90
8.0.50.0150.00416.99
8.0.30.0130.00616.92
8.0.20.0120.00516.98
8.0.10.0140.00317.01
7.4.330.0110.00216.61
7.4.320.0100.00616.83
7.4.300.0100.00516.86
7.4.290.0140.00216.84
7.4.280.0130.00316.81
7.4.270.0140.00416.83
7.4.260.0140.00416.83
7.4.250.0130.00516.80
7.4.240.0110.00516.82
7.4.230.0120.00516.85
7.4.220.0090.00716.83
7.4.210.0110.00616.83
7.4.200.0110.00516.82
7.4.190.0110.00616.82
7.4.180.0140.00416.84
7.4.160.0120.00516.85
7.4.150.0130.00516.82
7.4.140.0120.00616.83
7.4.130.0150.00616.80
7.4.120.0120.00516.79
7.4.110.0130.00516.83
7.4.100.0140.00416.84
7.4.90.0170.00416.85
7.4.80.0160.00216.84
7.4.70.0120.00616.81
7.4.60.0140.00416.81
7.4.50.0130.00516.81
7.4.40.0150.00316.78
7.4.30.0100.00816.83
7.4.20.0100.00716.82
7.4.10.0130.00416.80
7.4.00.0140.00616.83

preferences:
30.38 ms | 403 KiB | 5 Q