3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '"smoarsk.russvet.ru" <smo6@krasnoyarsk.russvet.ru>'; $pattern = '/[a-z0-9_\-\+\.]+@[a-z0-9\-]+\.([a-z]{2,4})(?:\.[a-z]{2})?/i'; preg_match_all($pattern, $string, $matches); var_dump($matches[0]); preg_match_all("/[\._a-zA-Z0-9-]+@[\._a-zA-Z0-9-]+/i", $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.5.00.0100.01020.17
8.4.150.0040.00014.05
8.4.140.0150.00817.63
8.4.130.0080.00217.90
8.4.120.0080.00320.69
8.4.110.0110.00922.45
8.4.100.0120.01017.84
8.4.90.0140.00622.63
8.4.80.0080.00219.75
8.4.70.0080.01117.95
8.4.60.0120.00818.72
8.4.50.0100.01022.77
8.4.40.0070.01017.94
8.4.30.0100.00718.69
8.4.20.0100.01019.79
8.4.10.0160.00319.44
8.3.280.0130.00618.55
8.3.270.0080.01316.54
8.3.260.0090.00916.50
8.3.250.0070.00820.57
8.3.240.0130.00616.72
8.3.230.0120.00816.65
8.3.220.0040.00416.91
8.3.210.0130.00918.67
8.3.200.0080.01016.52
8.3.190.0120.00717.19
8.3.180.0040.00416.65
8.3.170.0050.00317.27
8.3.160.0130.00318.42
8.3.150.0100.01020.66
8.3.140.0150.00320.80
8.3.130.0080.00018.47
8.3.120.0060.00318.79
8.3.110.0000.00920.94
8.3.100.0120.00916.46
8.3.90.0080.00026.77
8.3.80.0090.00017.97
8.3.70.0130.01016.75
8.3.60.0090.00918.43
8.3.50.0140.00716.72
8.3.40.0100.00723.65
8.3.30.0090.00918.95
8.3.20.0070.00024.18
8.3.10.0150.00024.66
8.3.00.0040.00426.16
8.2.290.0080.00420.42
8.2.280.0110.00918.55
8.2.270.0070.01417.14
8.2.260.0150.00319.09
8.2.250.0070.00716.84
8.2.240.0060.00317.04
8.2.230.0000.00822.58
8.2.220.0030.00624.06
8.2.210.0060.01226.77
8.2.200.0060.00316.88
8.2.190.0060.00916.75
8.2.180.0100.01016.88
8.2.170.0100.01018.96
8.2.160.0100.00322.96
8.2.150.0040.00425.66
8.2.140.0000.00824.66
8.2.130.0100.00726.16
8.2.120.0040.00419.62
8.2.110.0030.00722.40
8.2.100.0090.00318.44
8.2.90.0230.00618.44
8.2.80.0210.00918.44
8.2.70.0210.01018.44
8.2.60.0240.00718.44
8.2.50.0270.00518.44
8.2.40.0210.00618.44
8.2.30.0230.00518.44
8.2.20.0230.00518.44
8.2.10.0250.00318.44
8.2.00.0220.00818.44
8.1.330.0140.00422.15
8.1.320.0050.00316.35
8.1.310.0080.00017.11
8.1.300.0000.00917.72
8.1.290.0070.00330.84
8.1.280.0180.00325.92
8.1.270.0000.00724.66
8.1.260.0050.00226.35
8.1.250.0120.00328.09
8.1.240.0060.00319.21
8.1.230.0240.00418.44
8.1.220.0230.00318.44
8.1.210.0280.00618.44
8.1.200.0210.00818.44
8.1.190.0200.00718.44
8.1.180.0240.00418.44
8.1.170.0180.00918.44
8.1.160.0260.00018.44
8.1.150.0180.00918.44
8.1.140.0140.01418.44
8.1.130.0170.01018.44
8.1.120.0260.00018.44
8.1.110.0210.00618.44
8.1.100.0200.00818.44
8.1.90.0110.01518.44
8.1.80.0250.00318.44
8.1.70.0270.00018.44
8.1.60.0210.00818.44
8.1.50.0220.00518.44
8.1.40.0210.00718.44
8.1.30.0230.00418.44
8.1.20.0190.01118.44
8.1.10.0230.00418.44
8.1.00.0230.00018.44
8.0.300.0270.00018.44
8.0.290.0220.00418.44
8.0.280.0270.00318.44
8.0.270.0260.00318.44
8.0.260.0190.00818.44
8.0.250.0200.00718.44
8.0.240.0210.00518.44
8.0.230.0260.00218.44
8.0.220.0190.00918.44
8.0.210.0170.01018.44
8.0.200.0230.00618.44
8.0.190.0200.01018.44
8.0.180.0290.00218.44
8.0.170.0180.01018.44
8.0.160.0220.00418.44
8.0.150.0190.00618.44
8.0.140.0230.00318.44
8.0.130.0180.00318.44
8.0.120.0240.00318.44
8.0.110.0220.00418.44
8.0.100.0230.00518.44
8.0.90.0270.00018.44
8.0.80.0280.00018.44
8.0.70.0200.00818.44
8.0.60.0270.00018.44
8.0.50.0300.00018.44
8.0.30.0220.00618.44
8.0.20.0170.00818.44
8.0.10.0230.00618.44

preferences:
80.39 ms | 403 KiB | 5 Q