3v4l.org

run code in 300+ PHP versions simultaneously
<?php $user_email = "dbutt@westminstertoyota.com"; $allowed_domain = '/^[^@]+@[^@]*toyota[^@]*\.[^@]+/'; preg_match($allowed_domain, $user_email, $matches); print_r($matches); $regex = preg_quote($allowed_domain, '#') . '$'; $res = preg_match("#$regex#i", $user_email); print_r($res);

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.3.40.0150.00018.97
8.3.30.0140.00019.04
8.3.20.0030.00520.34
8.3.10.0040.00421.95
8.3.00.0080.00022.38
8.2.170.0060.00922.96
8.2.160.0150.00021.01
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0040.00417.88
8.2.110.0030.00622.32
8.2.100.0090.00319.57
8.2.90.0000.00819.01
8.2.80.0040.00418.05
8.2.70.0080.00017.75
8.2.60.0040.00418.05
8.2.50.0080.00018.07
8.2.40.0050.00318.20
8.2.30.0000.01118.07
8.2.20.0040.00417.77
8.2.10.0030.00617.87
8.2.00.0040.00417.86
8.1.270.0060.00322.02
8.1.260.0080.00026.35
8.1.250.0060.00328.09
8.1.240.0060.00323.91
8.1.230.0110.00019.10
8.1.220.0000.00817.74
8.1.210.0060.00318.77
8.1.200.0000.00917.35
8.1.190.0040.00417.53
8.1.180.0000.00818.10
8.1.170.0040.00418.52
8.1.160.0070.00021.88
8.1.150.0000.00718.74
8.1.140.0000.00817.52
8.1.130.0000.00717.80
8.1.120.0080.00017.50
8.1.110.0060.00317.63
8.1.100.0000.00717.67
8.1.90.0050.00217.61
8.1.80.0040.00417.62
8.1.70.0000.00717.50
8.1.60.0060.00317.71
8.1.50.0080.00017.68
8.1.40.0080.00017.56
8.1.30.0000.00817.72
8.1.20.0040.00417.68
8.1.10.0000.00717.65
8.1.00.0060.00317.66
8.0.300.0070.00018.77
8.0.290.0080.00017.02
8.0.280.0000.00718.36
8.0.270.0030.00317.32
8.0.260.0040.00416.95
8.0.250.0000.00716.96
8.0.240.0070.00017.11
8.0.230.0070.00017.05
8.0.220.0030.00316.98
8.0.210.0060.00017.04
8.0.200.0060.00017.12
8.0.190.0040.00417.00
8.0.180.0000.00717.07
8.0.170.0040.00417.09
8.0.160.0000.00716.97
8.0.150.0030.00317.06
8.0.140.0050.00216.87
8.0.130.0060.00013.47
8.0.120.0080.00016.93
8.0.110.0040.00416.97
8.0.100.0040.00416.89
8.0.90.0000.00717.09
8.0.80.0150.00416.98
8.0.70.0040.00417.05
8.0.60.0000.00817.14
8.0.50.0050.00316.89
8.0.30.0120.00817.13
8.0.20.0140.00717.40
8.0.10.0030.00517.07
8.0.00.0070.01216.81
7.4.330.0050.00015.04
7.4.320.0030.00316.66
7.4.300.0040.00416.72
7.4.290.0070.00016.58
7.4.280.0000.00716.72
7.4.270.0030.00616.82
7.4.260.0030.00316.76
7.4.250.0070.00016.67
7.4.240.0000.00716.71
7.4.230.0040.00416.75
7.4.220.0100.01016.63
7.4.210.0070.00916.66
7.4.200.0000.00816.62
7.4.190.0030.00316.82
7.4.160.0110.00416.64
7.4.150.0040.01317.40
7.4.140.0100.01017.86
7.4.130.0090.01116.71
7.4.120.0030.01416.70
7.4.110.0100.00716.57
7.4.100.0110.00816.81
7.4.90.0090.00916.58
7.4.80.0070.01019.39
7.4.70.0160.00316.50
7.4.60.0110.00616.51
7.4.50.0040.00416.79
7.4.40.0070.00722.77
7.4.30.0040.01216.57
7.4.10.0020.01614.98
7.4.00.0090.00914.96
7.3.330.0000.00513.31
7.3.320.0030.00313.22
7.3.310.0030.00316.29
7.3.300.0030.00316.27
7.3.290.0130.00616.51
7.3.280.0080.01116.40
7.3.270.0070.01017.40
7.3.260.0120.00616.40
7.3.250.0100.00716.69
7.3.240.0140.00516.75
7.3.230.0130.00316.44
7.3.210.0060.01216.70
7.3.200.0100.00719.39
7.3.190.0170.00316.38
7.3.180.0080.00816.46
7.3.170.0080.00816.63
7.3.160.0080.00816.75
7.3.130.0080.01014.87
7.3.120.0080.00915.00
7.3.110.0060.01014.86
7.3.100.0070.00815.01
7.3.90.0020.01014.96
7.3.80.0040.00915.02
7.3.70.0050.00814.97
7.3.60.0020.01114.89
7.3.50.0050.00914.87
7.3.40.0060.00714.88
7.3.30.0040.00714.91
7.3.20.0050.00716.87
7.3.10.0040.00816.70
7.3.00.0040.00816.80
7.2.330.0100.00716.53
7.2.320.0100.00716.73
7.2.310.0070.01116.82
7.2.300.0150.00916.51
7.2.290.0100.00716.88
7.2.260.0120.00715.22
7.2.250.0070.01115.15
7.2.240.0050.01015.22
7.2.230.0090.00415.17
7.2.220.0050.00815.08
7.2.210.0030.01015.17
7.2.200.0050.00815.20
7.2.190.0060.01015.24
7.2.180.0030.01115.18
7.2.170.0090.00615.16
7.2.160.0050.00715.34
7.2.150.0090.00617.15
7.2.140.0070.00617.19
7.2.130.0070.00417.08
7.2.120.0040.00717.07
7.2.110.0050.00817.06
7.2.100.0070.00817.08
7.2.90.0020.01217.01
7.2.80.0030.01017.13
7.2.70.0090.00517.09
7.2.60.0070.00517.10
7.2.50.0060.00917.12
7.2.40.0060.00916.96
7.2.30.0040.01117.05
7.2.20.0060.01017.09
7.2.10.0040.01016.92
7.2.00.0040.01017.69
7.1.330.0050.01015.99
7.1.320.0080.00615.95
7.1.310.0050.00815.95
7.1.300.0080.00515.83
7.1.290.0060.00715.87
7.1.280.0050.00815.86
7.1.270.0070.00615.88
7.1.260.0080.00715.89
7.1.250.0070.00716.04
7.1.240.0050.00915.96
7.1.230.0080.00515.89
7.1.220.0050.00916.01
7.1.210.0040.00915.86
7.1.200.0060.00715.99
7.1.190.0100.00615.93
7.1.180.0080.00716.07
7.1.170.0050.00716.01
7.1.160.0090.00416.00
7.1.150.0100.00515.84
7.1.140.0090.00415.82
7.1.130.0050.00716.03
7.1.120.0090.00816.04
7.1.110.0090.00315.95
7.1.100.0010.01016.74
7.1.90.0050.01115.87
7.1.80.0050.00915.91
7.1.70.0070.00716.41
7.1.60.0020.01016.40
7.1.50.0050.01216.48
7.1.40.0100.00315.61
7.1.30.0050.01015.95
7.1.20.0040.01215.76
7.1.10.0070.00715.85
7.1.00.0040.03018.15
7.0.330.0030.00915.35
7.0.320.0050.00815.49
7.0.310.0060.00715.51
7.0.300.0040.00615.78
7.0.290.0060.00815.56
7.0.280.0080.00515.52
7.0.270.0090.00515.57
7.0.260.0030.00815.43
7.0.250.0050.00515.54
7.0.240.0080.00515.63
7.0.230.0050.00515.65
7.0.220.0050.00915.40
7.0.210.0080.00515.54
7.0.200.0060.00816.15
7.0.190.0060.00915.53
7.0.180.0070.00615.72
7.0.170.0090.00515.42
7.0.160.0040.00915.50
7.0.150.0080.00615.42
7.0.140.0060.02017.77
7.0.130.0050.00615.72
7.0.120.0050.00815.61
7.0.110.0060.00815.60
7.0.100.0050.00715.58
7.0.90.0060.00415.47
7.0.80.0060.00715.36
7.0.70.0060.01015.61
7.0.60.0090.02617.07
7.0.50.0070.02616.45
7.0.40.0040.03715.77
7.0.30.0110.02215.88
7.0.20.0170.01715.97
7.0.10.0100.02515.89
7.0.00.0030.02115.82
5.6.400.0110.00514.40
5.6.390.0010.01114.11
5.6.380.0050.00514.35
5.6.370.0040.00814.61
5.6.360.0070.00414.18
5.6.350.0060.00814.38
5.6.340.0050.01114.59
5.6.330.0020.00714.26
5.6.320.0080.00514.27
5.6.310.0050.01014.36
5.6.300.0120.00314.19
5.6.290.0000.01314.19
5.6.280.0040.00914.42
5.6.270.0090.00614.31
5.6.260.0020.01214.24
5.6.250.0050.00814.50
5.6.240.0110.00214.36
5.6.230.0000.01314.41
5.6.220.0030.01014.45
5.6.210.0060.01916.33
5.6.200.0060.03515.60
5.6.190.0070.03616.34
5.6.180.1120.01716.26
5.6.170.0090.03516.47
5.6.160.0040.02016.39
5.6.150.0050.03415.64
5.6.140.0070.03015.61
5.6.130.0030.03415.48
5.6.120.0030.03716.68
5.6.110.0080.02916.55
5.6.100.0060.02916.66
5.6.90.0050.02916.41
5.6.80.0060.03316.21
5.6.70.0070.00714.30
5.6.60.0110.00014.31
5.6.50.0030.01114.08
5.6.40.0040.00914.24
5.6.30.0100.00514.07
5.6.20.0030.01114.08
5.6.10.0030.00914.15
5.6.00.0050.00814.19
5.5.380.0050.00914.42
5.5.370.0020.01214.27
5.5.360.0080.00814.37
5.5.350.0090.02816.30
5.5.340.0090.03115.58
5.5.330.0050.02116.22
5.5.320.0080.03016.34
5.5.310.0110.03616.32
5.5.300.0080.03015.62
5.5.290.0070.03115.59
5.5.280.0050.03316.47
5.5.270.0050.02716.40
5.5.260.0070.03016.52
5.5.250.0070.02316.27
5.5.240.0100.02716.07
5.5.230.0050.00814.10
5.5.220.0110.00114.32
5.5.210.0100.00614.34
5.5.200.0040.00914.07
5.5.190.0080.00614.30
5.5.180.0060.00714.00
5.5.170.0080.00814.19
5.5.160.0060.00914.18
5.5.150.0040.00814.32
5.5.140.0110.00314.24
5.5.130.0060.00614.22
5.5.120.0040.01314.14
5.5.110.0060.00714.27
5.5.100.0070.00614.33
5.5.90.0070.00514.26
5.5.80.0050.00714.14
5.5.70.0020.01114.14
5.5.60.0000.01513.96
5.5.50.0070.00514.32
5.5.40.0060.00814.14
5.5.30.0050.00914.35
5.5.20.0060.00814.25
5.5.10.0050.00914.11
5.5.00.0060.00614.34
5.4.450.0120.02114.00
5.4.440.0050.02113.90
5.4.430.0070.02014.04
5.4.420.0090.02013.87
5.4.410.0040.02213.90
5.4.400.0370.00213.74
5.4.390.0310.00413.63
5.4.380.0130.02213.74
5.4.370.0110.02213.68
5.4.360.0090.02013.70
5.4.350.0140.02713.75
5.4.340.0140.01813.69
5.4.330.0010.00711.18
5.4.320.0070.01611.68
5.4.310.0060.02311.63
5.4.300.0040.01911.62
5.4.290.0090.01711.63
5.4.280.0060.01611.63
5.4.270.0050.01811.63
5.4.260.0080.01913.79
5.4.250.0040.02513.84
5.4.240.0050.02613.74
5.4.230.0090.01713.68
5.4.220.0060.02213.58
5.4.210.0070.02113.65
5.4.200.0070.02013.77
5.4.190.0070.02013.73
5.4.180.0060.02813.78
5.4.170.0090.01713.80
5.4.160.0070.02213.77
5.4.150.0090.02513.64
5.4.140.0030.03012.94
5.4.130.0040.02912.90
5.4.120.0070.01912.91
5.4.110.0040.02012.95
5.4.100.0090.01712.95
5.4.90.0020.02112.92
5.4.80.0080.01713.04
5.4.70.0030.02212.97
5.4.60.0040.02012.94
5.4.50.0040.02112.99
5.4.40.0070.01713.02
5.4.30.0090.01612.92
5.4.20.0060.02113.01
5.4.10.0040.02312.92
5.4.00.0040.02012.78
5.3.290.0040.01711.62
5.3.280.0030.02412.09
5.3.270.0070.02912.20
5.3.260.0070.01912.21
5.3.250.0050.02212.18
5.3.240.0070.02912.16
5.3.230.0020.02412.17
5.3.220.0090.02112.15
5.3.210.0090.02412.09
5.3.200.0050.02212.13
5.3.190.0020.02412.15
5.3.180.0060.02112.17
5.3.170.0100.02212.19
5.3.160.0050.02112.23
5.3.150.0030.02412.22
5.3.140.0070.02012.15
5.3.130.0080.01912.08
5.3.120.0030.02212.08
5.3.110.0060.02112.03
5.3.100.0060.01911.93
5.3.90.0070.02012.07
5.3.80.0020.02511.96
5.3.70.0020.02411.99
5.3.60.0040.02111.94
5.3.50.0030.02011.95
5.3.40.0010.02211.91
5.3.30.0030.02711.96
5.3.20.0060.02511.79
5.3.10.0030.02111.81
5.3.00.0040.02811.77
5.2.170.0000.04711.36
5.2.160.0100.04011.22
5.2.150.0100.05311.12
5.2.140.0130.04011.20
5.2.130.0030.06311.17
5.2.120.0030.04011.18
5.2.110.0100.05011.09
5.2.100.0030.06311.09
5.2.90.0070.03711.08
5.2.80.0070.04011.16
5.2.70.0030.04711.07
5.2.60.0030.06010.99
5.2.50.0030.05710.84
5.2.40.0100.03711.15
5.2.30.0070.04010.97
5.2.20.0100.05310.95
5.2.10.0100.03310.85
5.2.00.0030.04010.89
5.1.60.0030.0339.83
5.1.50.0030.03710.07
5.1.40.0030.04310.06
5.1.30.0070.03710.31
5.1.20.0100.03310.25
5.1.10.0070.04710.11
5.1.00.0030.03710.11
5.0.50.0000.0308.37
5.0.40.0000.0438.55
5.0.30.0030.0578.28
5.0.20.0070.0278.24
5.0.10.0000.0438.16
5.0.00.0000.0438.13
4.4.90.0030.0277.02
4.4.80.0000.0237.02
4.4.70.0070.0277.02
4.4.60.0030.0207.02
4.4.50.0070.0277.02
4.4.40.0100.0407.02
4.4.30.0000.0237.02
4.4.20.0030.0207.39
4.4.10.0000.0237.39
4.4.00.0030.0337.39
4.3.110.0030.0277.39
4.3.100.0070.0237.39
4.3.90.0030.0307.39
4.3.80.0000.0437.39
4.3.70.0000.0237.39
4.3.60.0070.0177.39
4.3.50.0000.0237.39
4.3.40.0000.0337.39
4.3.30.0030.0207.39
4.3.20.0000.0237.39
4.3.10.0000.0237.39
4.3.00.0030.0237.07

preferences:
40.77 ms | 400 KiB | 5 Q