3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "001122334 001122334455 0011 0011223344556677"; if (preg_match_all('/\b[a-fA-F0-9]{12}\b/', $string, $matches)) { print_r($matches[0]); } if (preg_match_all('/(?<!\S)[a-fA-F0-9]{12}(?!\S)/', $string, $matches)) { print_r($matches[0]); } if (preg_match_all('/(?<![a-fA-F0-9])[a-fA-F0-9]{12}(?![a-fA-F0-9])/', $string, $matches)) { print_r($matches[0]); }

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.120.0080.00924.38
8.4.110.0020.00620.77
8.4.100.0110.00717.91
8.4.90.0080.01017.80
8.4.80.0070.00517.74
8.4.70.0090.01118.32
8.4.60.0070.00518.70
8.4.50.0120.00817.97
8.4.40.0210.00017.87
8.4.30.0170.00318.30
8.4.20.0030.00620.00
8.4.10.0060.00920.41
8.3.250.0100.00818.84
8.3.240.0080.01117.05
8.3.230.0030.00816.87
8.3.220.0020.00818.87
8.3.210.0030.00516.54
8.3.200.0030.00616.77
8.3.190.0090.00518.60
8.3.180.0120.00716.54
8.3.170.0050.00316.78
8.3.160.0080.01116.59
8.3.150.0090.00017.31
8.3.140.0140.00018.73
8.3.130.0070.00318.27
8.3.120.0070.00318.67
8.3.110.0030.00618.39
8.3.100.0090.00016.61
8.3.90.0110.00726.77
8.3.80.0060.00318.09
8.3.70.0070.01416.88
8.3.60.0040.01118.18
8.3.50.0100.00724.52
8.3.40.0070.00718.94
8.3.30.0110.00718.94
8.3.20.0040.00421.88
8.3.10.0000.00820.21
8.3.00.0050.00323.46
8.2.290.0080.00220.64
8.2.280.0100.00920.36
8.2.270.0130.00716.75
8.2.260.0080.00019.24
8.2.250.0030.01618.70
8.2.240.0060.00318.96
8.2.230.0060.00320.94
8.2.220.0060.00324.06
8.2.210.0030.00526.77
8.2.200.0090.00018.41
8.2.190.0100.00718.41
8.2.180.0040.01525.92
8.2.170.0040.01118.95
8.2.160.0040.01122.96
8.2.150.0080.00024.18
8.2.140.0110.00324.66
8.2.130.0080.00026.16
8.2.120.0070.00026.16
8.2.110.0060.00322.42
8.2.100.0060.00617.91
8.2.90.0040.00417.75
8.2.80.0040.00418.89
8.2.70.0060.00317.93
8.2.60.0070.00018.22
8.2.50.0000.00819.38
8.2.40.0070.00319.42
8.2.30.0000.00819.28
8.2.20.0040.00418.20
8.2.10.0050.00219.27
8.2.00.0040.00419.21
8.1.330.0160.00521.86
8.1.320.0100.01016.41
8.1.310.0030.00616.93
8.1.300.0030.00618.59
8.1.290.0000.01030.84
8.1.280.0060.00925.92
8.1.270.0040.00420.62
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0040.00423.98
8.1.230.0060.00617.89
8.1.220.0000.00817.74
8.1.210.0060.00318.77
8.1.200.0040.00417.35
8.1.190.0060.00317.35
8.1.180.0060.00318.75
8.1.170.0040.00418.65
8.1.160.0040.00419.04
8.1.150.0080.00018.85
8.1.140.0000.00718.96
8.1.130.0070.00020.10
8.1.120.0000.00817.44
8.1.110.0070.00017.42
8.1.100.0040.00417.38
8.1.90.0070.00017.49
8.1.80.0080.00317.54
8.1.70.0030.00517.53
8.1.60.0040.00417.71
8.1.50.0000.00917.64
8.1.40.0040.00417.64
8.1.30.0030.00617.64
8.1.20.0040.00417.70
8.1.10.0030.00517.71
8.1.00.0050.00317.66
8.0.300.0000.00718.88
8.0.290.0050.00316.75
8.0.280.0070.00018.34
8.0.270.0020.00516.91
8.0.260.0070.00018.32
8.0.250.0000.00817.05
8.0.240.0030.00516.94
8.0.230.0030.00316.91
8.0.220.0030.00316.87
8.0.210.0000.00716.94
8.0.200.0000.00716.99
8.0.190.0030.00316.92
8.0.180.0040.00416.98
8.0.170.0060.00317.01
8.0.160.0080.00017.04
8.0.150.0000.00816.98
8.0.140.0040.00416.95
8.0.130.0030.00313.40
8.0.120.0040.00416.91
8.0.110.0000.00716.80
8.0.100.0070.00016.98
8.0.90.0030.00616.83
8.0.80.0080.00916.95
8.0.70.0040.00417.00
8.0.60.0040.00416.77
8.0.50.0030.00316.77
8.0.30.0030.01416.97
8.0.20.0120.00817.21
8.0.10.0050.00217.05
8.0.00.0130.01016.76
7.4.330.0000.00615.55
7.4.320.0090.00016.76
7.4.300.0030.00316.68
7.4.290.0070.00016.75
7.4.280.0040.00416.61
7.4.270.0030.00316.63
7.4.260.0050.00013.44
7.4.250.0040.00416.59
7.4.240.0060.00116.66
7.4.230.0040.00416.77
7.4.220.0020.00516.64
7.4.210.0040.01216.64
7.4.200.0030.00316.59
7.4.130.0120.01016.59
7.4.120.0030.01316.73
7.4.110.0100.00716.73
7.4.100.0090.00916.51
7.4.90.0070.01016.52
7.4.80.0040.01719.39
7.4.70.0080.00816.83
7.4.60.0100.00616.50
7.4.50.0060.00916.71
7.4.40.0160.00616.60
7.4.30.0130.01016.32
7.4.20.0120.01316.61
7.4.10.0100.01616.70
7.4.00.0140.00716.48
7.3.330.0070.00016.52
7.3.320.0000.00513.28
7.3.310.0000.00716.40
7.3.300.0030.00316.38
7.3.290.0120.00416.34
7.3.280.0100.01016.29
7.3.260.0060.01016.39
7.3.240.0070.01116.49
7.3.230.0130.00316.37
7.3.210.0110.01116.38
7.3.200.0100.00716.80
7.3.190.0030.01216.45
7.3.180.0080.00816.62
7.3.170.0060.00916.64
7.3.160.0080.01616.32
7.3.150.0110.01516.24
7.3.140.0220.00016.74
7.3.130.0090.01516.43
7.3.120.0080.01416.26
7.3.110.0100.01016.70
7.3.100.0210.00416.54
7.3.90.0170.00816.39
7.3.80.0220.00316.46
7.3.70.0110.01116.34
7.3.60.0110.01116.44
7.3.50.0220.00516.35
7.3.40.0130.01016.41
7.3.30.0200.00616.50
7.3.20.0330.01316.33
7.3.10.0150.00716.38
7.3.00.0060.01916.27
7.2.330.0040.01516.45
7.2.320.0170.00716.85
7.2.310.0030.01316.75
7.2.300.0080.00816.53
7.2.290.0120.01316.55
7.2.280.0100.01016.50
7.2.270.0170.00716.55
7.2.260.0140.01416.66
7.2.250.0190.00316.66
7.2.240.0110.01116.58
7.2.230.0180.00516.76
7.2.220.0130.01016.57
7.2.210.0110.01616.74
7.2.200.0160.00516.48
7.2.190.0170.00816.71
7.2.180.0190.00816.54
7.2.170.0190.00516.57
7.2.160.0090.01216.42
7.2.150.0140.01216.50
7.2.140.0130.01316.76
7.2.130.0220.00316.66
7.2.120.0260.00716.71
7.2.110.0150.00916.57
7.2.100.0120.01316.61
7.2.90.0180.00916.53
7.2.80.0110.01416.45
7.2.70.0090.01316.72
7.2.60.0140.01216.56
7.2.50.0120.01216.65
7.2.40.0130.01016.77
7.2.30.0170.00716.72
7.2.20.0110.01416.56
7.2.10.0130.00916.32
7.2.00.0060.01216.65

preferences:
27.96 ms | 403 KiB | 5 Q