3v4l.org

run code in 300+ PHP versions simultaneously
<?php $email = 'delboy1978uk@work.com'; $regex = '#\w+@(?<domain>\w+\-?\w+\.\w+)#'; preg_match($regex, $email, $matches); $domain = $matches['domain']; if ($domain !== 'example-test.com') { echo 'domain '.$domain.' doesnt 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.10.0110.00719.42
8.5.00.0090.01220.03
8.4.160.0110.01219.77
8.4.150.0030.00014.05
8.4.140.0100.01317.71
8.4.130.0040.00518.60
8.4.120.0060.00720.48
8.4.110.0070.00419.15
8.4.100.0120.00518.67
8.4.90.0140.00618.71
8.4.80.0100.00918.89
8.4.70.0080.00719.16
8.4.60.0140.00718.93
8.4.50.0130.00720.39
8.4.40.0070.01119.52
8.4.30.0060.01319.64
8.4.20.0100.01018.00
8.4.10.0030.00717.72
8.3.280.0120.00918.56
8.3.270.0090.01116.87
8.3.260.0050.00516.89
8.3.250.0120.00618.95
8.3.240.0100.00816.86
8.3.230.0110.00916.62
8.3.220.0030.00718.86
8.3.210.0050.00416.66
8.3.200.0110.00816.57
8.3.190.0130.00617.07
8.3.180.0080.01118.93
8.3.170.0120.00616.88
8.3.160.0150.00317.11
8.3.150.0090.00919.13
8.3.140.0080.00018.85
8.3.130.0030.00616.60
8.3.120.0060.00320.67
8.3.110.0080.00016.63
8.3.100.0060.00616.73
8.3.90.0050.00326.77
8.3.80.0060.00316.63
8.3.70.0140.01116.75
8.3.60.0110.00716.88
8.3.50.0110.00822.10
8.3.40.0090.00618.82
8.3.30.0070.00718.92
8.3.20.0050.00220.34
8.3.10.0040.00421.77
8.3.00.0070.00021.63
8.2.290.0070.00520.63
8.2.280.0110.00818.77
8.2.270.0160.00316.59
8.2.260.0000.01016.53
8.2.250.0000.00817.37
8.2.240.0040.01118.75
8.2.230.0040.00420.94
8.2.220.0100.00024.06
8.2.210.0080.00026.77
8.2.200.0090.00016.63
8.2.190.0120.00316.88
8.2.180.0090.00918.41
8.2.170.0030.01222.96
8.2.160.0110.00421.27
8.2.150.0030.00524.18
8.2.140.0070.00024.66
8.2.130.0000.00826.16
8.2.120.0000.00721.16
8.2.110.0030.00720.39
8.2.100.0070.00717.79
8.2.90.0040.00417.88
8.2.80.0030.00518.97
8.2.70.0040.00418.00
8.2.60.0030.00617.88
8.2.50.0050.00317.88
8.2.40.0000.00822.27
8.2.30.0040.00419.43
8.2.20.0000.00718.14
8.2.10.0000.00718.44
8.2.00.0020.00518.32
8.1.330.0110.00822.07
8.1.320.0120.00816.63
8.1.310.0100.00716.77
8.1.300.0160.00318.65
8.1.290.0070.00430.84
8.1.280.0090.00625.92
8.1.270.0090.00021.90
8.1.260.0140.00426.35
8.1.250.0040.00728.09
8.1.240.0030.00621.02
8.1.230.0000.01119.00
8.1.220.0000.00817.79
8.1.210.0050.00318.77
8.1.200.0040.00417.60
8.1.190.0040.00417.40
8.1.180.0000.00818.10
8.1.170.0030.00520.05
8.1.160.0070.00018.86
8.1.150.0040.00420.18
8.1.140.0070.00019.58
8.1.130.0000.00718.95
8.1.120.0000.00717.50
8.1.110.0040.00417.52
8.1.100.0080.00017.67
8.1.90.0040.00417.64
8.1.80.0030.00517.65
8.1.70.0000.00817.59
8.1.60.0060.00317.74
8.1.50.0050.00317.67
8.1.40.0000.00817.56
8.1.30.0000.00817.63
8.1.20.0050.00317.86
8.1.10.0040.00417.75
8.1.00.0050.00217.54
8.0.300.0080.00318.77
8.0.290.0040.00416.88
8.0.280.0000.00718.46
8.0.270.0030.00317.20
8.0.260.0030.00317.29
8.0.250.0070.00016.98
8.0.240.0000.00817.00
8.0.230.0030.00316.98
8.0.220.0040.00417.04
8.0.210.0040.00417.07
8.0.200.0000.00916.98
8.0.190.0090.00317.16
8.0.180.0040.00416.91
8.0.170.0000.00817.05
8.0.160.0000.00717.05
8.0.150.0000.00716.98
8.0.140.0030.00416.94
8.0.130.0000.00613.43
8.0.120.0000.00817.03
8.0.110.0040.00417.02
8.0.100.0000.00716.93
8.0.90.0050.00317.00
8.0.80.0130.00316.91
8.0.70.0000.00716.89
8.0.60.0040.00416.82
8.0.50.0000.00716.76
8.0.30.0120.00817.22
8.0.20.0120.00717.42
8.0.10.0000.00717.12
8.0.00.0170.00016.75
7.4.330.0020.00215.55
7.4.320.0000.00616.72
7.4.300.0060.00016.62
7.4.290.0100.00016.80
7.4.280.0030.00516.70
7.4.270.0000.00716.80
7.4.260.0070.00316.83
7.4.250.0040.00416.67
7.4.240.0000.00716.57
7.4.230.0000.00716.70
7.4.220.0120.00616.65
7.4.210.0110.00416.79
7.4.200.0070.00016.72
7.4.160.0100.01016.77
7.4.150.0090.00917.40
7.4.140.0110.01117.86
7.4.130.0100.01116.66
7.4.120.0120.00916.71
7.4.110.0100.01016.69
7.4.100.0070.01016.71
7.4.90.0090.00916.67
7.4.80.0120.00919.39
7.4.70.0160.00316.72
7.4.60.0160.00616.59
7.4.50.0040.01216.69
7.4.40.0060.00916.74
7.4.30.0080.01216.57
7.4.00.0090.00314.86
7.3.330.0060.00013.21
7.3.320.0030.00313.30
7.3.310.0070.00016.48
7.3.300.0070.00016.48
7.3.290.0020.00516.31
7.3.280.0100.00716.46
7.3.270.0120.00917.40
7.3.260.0150.00816.69
7.3.250.0080.00916.57
7.3.240.0080.00816.48
7.3.230.0090.01216.50
7.3.210.0140.00316.71
7.3.200.0080.00916.60
7.3.190.0090.00616.57
7.3.180.0100.00716.71
7.3.170.0000.01716.37
7.3.160.0100.00616.88
7.3.120.0040.01415.13
7.3.110.0070.01014.99
7.3.100.0110.00714.72
7.3.90.0060.00314.98
7.3.80.0110.00614.93
7.3.70.0060.00614.77
7.3.60.0060.01015.08
7.3.50.0060.00815.11
7.3.40.0000.01414.91
7.3.30.0100.00714.80
7.3.20.0040.00817.06
7.3.10.0110.00416.73
7.3.00.0040.00816.90
7.2.330.0140.01116.99
7.2.320.0030.01616.86
7.2.310.0130.00416.55
7.2.300.0120.00616.71
7.2.290.0070.01016.74
7.2.240.0070.01015.31
7.2.230.0070.00715.06
7.2.220.0000.01315.32
7.2.210.0070.00714.93
7.2.200.0030.01015.15
7.2.190.0070.00715.02
7.2.180.0030.01015.24
7.2.170.0090.00615.31
7.2.160.0070.01015.18
7.2.150.0060.00917.13
7.2.140.0090.00617.16
7.2.130.0070.00717.13
7.2.120.0040.01417.18
7.2.110.0030.01416.94
7.2.100.0000.01017.24
7.2.90.0000.01616.96
7.2.80.0040.00616.98
7.2.70.0060.00917.21
7.2.60.0090.00917.06
7.2.50.0060.00917.21
7.2.40.0060.00917.27
7.2.30.0060.00317.14
7.2.20.0040.00716.99
7.2.10.0080.00417.11
7.2.00.0030.01016.85
7.1.330.0140.00315.92
7.1.320.0080.00416.07
7.1.310.0000.01616.29
7.1.300.0060.01216.11
7.1.290.0060.00316.10
7.1.280.0060.00916.02
7.1.270.0080.00016.06
7.1.260.0090.00616.00
7.1.250.0000.01415.64
7.1.200.0060.00616.02
7.1.70.0030.00917.54
7.1.60.0100.00317.55
7.1.40.0270.01034.84
7.1.30.0170.01034.56
7.1.20.0230.00334.67
7.1.10.0000.01316.68
7.1.00.0070.01016.91
7.0.200.0000.00817.01
7.0.180.0030.01316.26
7.0.170.0070.00716.51
7.0.160.0030.01016.49
7.0.150.0070.01016.27
7.0.140.0030.01316.63
7.0.130.0100.00716.70
7.0.120.0000.01316.85
7.0.110.0000.01316.49
7.0.100.0030.01016.52
7.0.90.0100.00716.42
7.0.80.0000.01316.65
7.0.70.0070.01016.57
7.0.60.0000.01316.18
7.0.50.0030.01016.37
7.0.40.0030.01016.56
7.0.30.0030.01016.80
7.0.20.0000.01316.49
7.0.10.0000.01316.54
7.0.00.0070.00716.54

preferences:
37.83 ms | 403 KiB | 5 Q