3v4l.org

run code in 300+ PHP versions simultaneously
<?php $re = '/(?:(?:;|^)\h*(?<name>[^;<>]+)\h+<(?<email>[^<>\s@;]+@[^\s@<>;]+)>|(?<email>[^<>\s@;]+@[^\s@<>;]+))/J'; $str = 'jeff <jeff@store.com>; john <john@bbaft.com>; joe@company.com; jj@abc.info; jamie <jam@sub.abc.com>'; preg_match_all($re, $str, $matches, PREG_SET_ORDER, 0); foreach ($matches as $match) { echo sprintf("Name: %s\nEmail: %s\n\n", $match["name"], $match["email"]); }

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.00717.92
8.4.130.0100.01018.38
8.4.120.0140.00824.05
8.4.110.0070.00318.81
8.4.100.0100.01019.07
8.4.90.0080.01220.64
8.4.80.0140.00617.97
8.4.70.0120.00817.88
8.4.60.0130.00817.94
8.4.50.0150.00618.18
8.4.40.0070.01319.50
8.4.30.0130.01020.55
8.4.20.0160.00318.05
8.4.10.0100.01021.50
8.3.270.0020.00616.66
8.3.260.0130.00616.59
8.3.250.0100.01018.95
8.3.240.0080.01118.89
8.3.230.0060.00416.70
8.3.220.0140.00418.82
8.3.210.0020.00616.78
8.3.200.0090.01016.65
8.3.190.0130.00616.54
8.3.180.0100.00916.54
8.3.170.0110.00716.80
8.3.160.0090.00916.73
8.3.150.0090.00917.36
8.3.140.0060.01216.90
8.3.130.0100.00618.59
8.3.120.0090.00019.06
8.3.110.0000.01016.88
8.3.100.0060.00324.06
8.3.90.0110.00426.77
8.3.80.0070.00319.36
8.3.70.0120.00618.28
8.3.60.0070.01018.30
8.3.50.0100.00923.74
8.3.40.0040.01121.91
8.3.30.0150.00018.92
8.3.20.0040.00424.18
8.3.10.0000.00824.66
8.3.00.0080.00026.16
8.2.290.0110.00720.53
8.2.280.0040.00518.59
8.2.270.0100.00616.71
8.2.260.0060.00616.51
8.2.250.0080.00018.90
8.2.240.0160.00317.35
8.2.230.0100.00720.94
8.2.220.0130.00337.54
8.2.210.0030.00526.77
8.2.200.0060.00318.88
8.2.190.0150.00016.62
8.2.180.0140.00425.92
8.2.170.0060.00922.96
8.2.160.0120.00822.96
8.2.150.0050.00325.66
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0090.00026.35
8.2.110.0080.00321.11
8.2.100.0090.00318.03
8.2.90.0040.00417.88
8.2.80.0030.00519.05
8.2.70.0080.00017.93
8.2.60.0050.00318.22
8.2.50.0060.00318.10
8.2.40.0050.00319.45
8.2.30.0020.00519.33
8.2.20.0040.00418.15
8.2.10.0070.00019.18
8.2.00.0050.00319.34
8.1.330.0060.00322.02
8.1.320.0090.01016.40
8.1.310.0030.00516.71
8.1.300.0040.00420.11
8.1.290.0030.00630.84
8.1.280.0130.00325.92
8.1.270.0000.00921.92
8.1.260.0070.00028.09
8.1.250.0040.00428.09
8.1.240.0130.00017.36
8.1.230.0030.00920.79
8.1.220.0050.00317.76
8.1.210.0030.00518.77
8.1.200.0060.00317.48
8.1.190.0030.00617.48
8.1.180.0030.00518.10
8.1.170.0050.00318.79
8.1.160.0070.00019.09
8.1.150.0000.00718.92
8.1.140.0040.00418.91
8.1.130.0040.00417.61
8.1.120.0000.00817.54
8.1.110.0060.00317.59
8.1.100.0040.00417.54
8.1.90.0040.00417.62
8.1.80.0040.00417.66
8.1.70.0000.00717.66
8.1.60.0000.00917.74
8.1.50.0040.00417.57
8.1.40.0040.00417.69
8.1.30.0040.00417.79
8.1.20.0030.00517.79
8.1.10.0030.00517.61
8.1.00.0060.00317.64
8.0.300.0040.00418.77
8.0.290.0000.00817.00
8.0.280.0030.00318.44
8.0.270.0000.00817.02
8.0.260.0070.00016.85
8.0.250.0040.00417.10
8.0.240.0000.00717.12
8.0.230.0080.00017.10
8.0.220.0000.00716.92
8.0.210.0030.00417.05
8.0.200.0070.00017.08
8.0.190.0030.00417.11
8.0.180.0040.00416.92
8.0.170.0030.00617.08
8.0.160.0030.00616.96
8.0.150.0040.00417.02
8.0.140.0030.00517.00
8.0.130.0000.00513.43
8.0.120.0040.00417.05
8.0.110.0060.00316.92
8.0.100.0040.00417.16
8.0.90.0070.00016.95
8.0.80.0070.01116.99
8.0.70.0000.00716.95
8.0.60.0030.00517.12
8.0.50.0000.00717.11
8.0.30.0070.01017.06
8.0.20.0060.01717.21
8.0.10.0000.00717.16
8.0.00.0100.01716.78
7.4.330.0030.00315.55
7.4.320.0060.00016.84
7.4.300.0060.00016.81
7.4.290.0080.00016.78
7.4.280.0050.00316.64
7.4.270.0040.00416.86
7.4.260.0030.00313.44
7.4.250.0030.00316.79
7.4.240.0040.00416.75
7.4.230.0000.00716.58
7.4.220.0020.00516.73
7.4.210.0080.00916.77
7.4.200.0050.00216.56
7.4.130.0160.01016.34
7.4.120.0150.00416.57
7.4.110.0110.00816.36
7.4.100.0070.01016.54
7.4.90.0100.00716.55
7.4.80.0050.01416.48
7.4.70.0060.01216.75
7.4.60.0120.00616.64
7.4.50.0090.00916.30
7.4.40.0120.00616.31
7.4.30.0090.01216.61
7.4.20.0120.00916.59
7.4.10.0000.01816.58
7.4.00.0120.01116.43
7.3.330.0040.00416.30
7.3.320.0030.00313.37
7.3.310.0000.00816.33
7.3.300.0030.00316.44
7.3.290.0060.01016.41
7.3.260.0090.00916.66
7.3.250.0070.01116.52
7.3.240.0150.00316.38
7.3.230.0120.00616.73
7.3.220.0090.00916.51
7.3.210.0120.00616.52
7.3.200.0070.01116.37
7.3.190.0110.00817.00
7.3.180.0120.00616.61
7.3.170.0160.00616.56
7.3.160.0200.00416.61
7.3.150.0180.00016.45
7.3.140.0090.01516.80
7.3.130.0140.00616.50
7.3.120.0100.01316.71
7.3.110.0030.01616.75
7.3.100.0170.00716.77
7.3.90.0110.01416.47
7.3.80.0060.01316.70
7.3.70.0220.00316.52
7.3.60.0220.00416.60
7.3.50.0150.00416.46
7.3.40.0120.00916.41
7.3.30.0150.00916.50
7.3.20.0090.01416.54
7.3.10.0130.01016.47
7.3.00.0090.00916.63

preferences:
30.2 ms | 403 KiB | 5 Q