3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pattern = '/^[^\d\r\n]*\b(\d+)([admno]\d+)?/'; $strings = [ "Some string 12345a1% some other string.", "Somet string 23456b2! some other string" ]; foreach ($strings as $s) { preg_match($pattern, $s, $match); var_dump($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.30.0110.00619.16
8.5.20.0100.00721.34
8.5.10.0080.01020.08
8.5.00.0140.00821.88
8.4.180.0110.01119.80
8.4.170.0070.00320.43
8.4.160.0100.01123.71
8.4.150.0080.00416.91
8.4.140.0110.01017.50
8.4.130.0160.00517.82
8.4.120.0160.00420.58
8.4.110.0100.00718.71
8.4.100.0100.00417.81
8.4.90.0040.00518.59
8.4.80.0050.00417.91
8.4.70.0110.00918.04
8.4.60.0130.00818.64
8.4.50.0130.00717.74
8.4.40.0100.01022.57
8.4.30.0100.01020.43
8.4.20.0170.00317.98
8.4.10.0100.00023.71
8.3.300.0090.01020.95
8.3.290.0100.01020.95
8.3.280.0060.00318.60
8.3.270.0180.00716.86
8.3.260.0110.00916.76
8.3.250.0120.00719.05
8.3.240.0150.00416.45
8.3.230.0130.00616.63
8.3.220.0050.00318.89
8.3.210.0110.00818.55
8.3.200.0100.00616.92
8.3.190.0110.00917.19
8.3.180.0050.00516.55
8.3.170.0030.01217.09
8.3.160.0040.01416.75
8.3.150.0040.01416.78
8.3.140.0050.00316.84
8.3.130.0110.00018.55
8.3.120.0000.00918.72
8.3.110.0090.00920.94
8.3.100.0040.00424.06
8.3.90.0110.00026.77
8.3.80.0060.00318.43
8.3.70.0070.01116.58
8.3.60.0130.00316.63
8.3.50.0120.00320.16
8.3.40.0030.01020.28
8.3.30.0070.00718.70
8.3.20.0040.00424.18
8.3.10.0060.00324.66
8.3.00.0000.00826.16
8.2.300.0180.00622.15
8.2.290.0120.00620.11
8.2.280.0080.00618.42
8.2.270.0120.00616.75
8.2.260.0110.00717.15
8.2.250.0100.00618.84
8.2.240.0000.00817.11
8.2.230.0040.00722.58
8.2.220.0060.00337.54
8.2.210.0080.00026.77
8.2.200.0060.00318.88
8.2.190.0130.01017.00
8.2.180.0070.00725.92
8.2.170.0040.01119.14
8.2.160.0030.01022.96
8.2.150.0080.00025.66
8.2.140.0030.00524.66
8.2.130.0050.00326.16
8.2.120.0060.00321.23
8.2.110.0040.00419.33
8.2.100.0080.00417.72
8.2.90.0060.00317.88
8.2.80.0050.00317.97
8.2.70.0000.00817.88
8.2.60.0080.00017.63
8.2.50.0040.00418.05
8.2.40.0080.00018.08
8.2.30.0000.00718.13
8.2.20.0000.00819.39
8.2.10.0040.00418.11
8.2.00.0040.00419.36
8.1.340.0100.01117.50
8.1.330.0130.00522.18
8.1.320.0110.00916.59
8.1.310.0140.00418.61
8.1.300.0090.00618.46
8.1.290.0040.00430.84
8.1.280.0100.00725.92
8.1.270.0030.00622.19
8.1.260.0060.00326.35
8.1.250.0070.00028.09
8.1.240.0000.00922.61
8.1.230.0090.00320.80
8.1.220.0030.00617.74
8.1.210.0040.00418.77
8.1.200.0060.00317.48
8.1.190.0040.00417.35
8.1.180.0050.00318.10
8.1.170.0030.00717.62
8.1.160.0030.00619.07
8.1.150.0030.00618.86
8.1.140.0060.00317.59
8.1.130.0070.00018.79
8.1.120.0070.00017.51
8.1.110.0000.00817.48
8.1.100.0040.00417.50
8.1.90.0110.00017.58
8.1.80.0150.00017.46
8.1.70.0090.00617.53
8.1.60.0060.01217.71
8.1.50.0110.00517.62
8.1.40.0090.00917.68
8.1.30.0150.00317.78
8.1.20.0140.00217.60
8.1.10.0130.00417.64
8.1.00.0070.01017.57
8.0.300.0060.00319.86
8.0.290.0080.00016.88
8.0.280.0030.00318.38
8.0.270.0030.00316.95
8.0.260.0000.00618.46
8.0.250.0030.00317.10
8.0.240.0000.01017.00
8.0.230.0000.00816.98
8.0.220.0080.00617.00
8.0.210.0110.00316.98
8.0.200.0110.00417.02
8.0.190.0160.00017.03
8.0.180.0050.01016.84
8.0.170.0080.00617.03
8.0.160.0060.00916.95
8.0.150.0120.00216.85
8.0.140.0080.00616.84
8.0.130.0110.00316.94
8.0.120.0100.00516.82
8.0.110.0120.00017.02
8.0.100.0100.00316.89
8.0.90.0040.01117.00
8.0.80.0040.00716.93
8.0.70.0100.00017.04
8.0.60.0030.00716.93
8.0.50.0070.00316.91
8.0.30.0000.01016.98
8.0.20.0080.00416.88
8.0.10.0070.00317.01
7.4.330.0000.00415.55
7.4.320.0030.00316.84
7.4.300.0060.00316.61
7.4.290.0120.00016.54
7.4.280.0110.00616.70
7.4.270.0100.00016.75
7.4.260.0040.00716.78
7.4.250.0090.00416.50
7.4.240.0050.00516.54
7.4.230.0100.00016.51
7.4.220.0100.00016.56
7.4.210.0130.00316.68
7.4.200.0040.01116.57
7.4.190.0150.00016.70
7.4.180.0110.00516.73
7.4.160.0080.00816.77
7.4.150.0150.00016.74
7.4.140.0120.00216.62
7.4.130.0080.00616.80
7.4.120.0060.00916.61
7.4.110.0110.00316.66
7.4.100.0100.00316.77
7.4.90.0090.00616.72
7.4.80.0050.00916.65
7.4.70.0170.00016.67
7.4.60.0110.00016.46
7.4.50.0000.01016.38
7.4.40.0080.00316.18
7.4.30.0090.00316.74
7.4.20.0060.00316.56
7.4.10.0100.00016.49
7.4.00.0040.00416.58

preferences:
44.64 ms | 1272 KiB | 5 Q