3v4l.org

run code in 300+ PHP versions simultaneously
<?php $user_email = 'asd@toyota.com'; $re_to = "/^[^@]+@[^@]*toyota[^@]*\.[^@]+/"; $regex = preg_quote($re_to, '#') . '$'; $res = preg_match("#$regex#i", $user_email); echo $res ? '1' : '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.3.60.0140.00318.31
8.3.50.0080.01221.92
8.3.40.0040.01118.82
8.3.30.0110.00418.81
8.3.20.0040.00420.34
8.3.10.0070.00022.05
8.3.00.0000.00722.38
8.2.180.0100.00716.87
8.2.170.0150.00022.96
8.2.160.0140.00321.00
8.2.150.0080.00024.18
8.2.140.0030.00624.66
8.2.130.0030.00626.16
8.2.120.0000.00819.36
8.2.110.0060.00322.29
8.2.100.0100.00319.64
8.2.90.0040.00419.27
8.2.80.0040.00417.97
8.2.70.0030.00617.59
8.2.60.0040.00417.80
8.2.50.0000.00818.07
8.2.40.0000.00818.03
8.2.30.0030.00518.04
8.2.20.0000.00717.68
8.2.10.0040.00417.87
8.2.00.0040.00417.77
8.1.280.0100.01025.92
8.1.270.0040.00422.06
8.1.260.0000.00726.35
8.1.250.0000.00828.09
8.1.240.0050.00323.80
8.1.230.0070.00319.16
8.1.220.0000.00817.78
8.1.210.0080.00018.77
8.1.200.0070.00317.48
8.1.190.0000.00817.41
8.1.180.0000.00818.10
8.1.170.0060.00318.59
8.1.160.0000.00721.95
8.1.150.0000.00818.79
8.1.140.0000.00717.59
8.1.130.0000.00717.77
8.1.120.0040.00417.52
8.1.110.0040.00417.61
8.1.100.0040.00317.59
8.1.90.0000.00717.49
8.1.80.0020.00517.65
8.1.70.0000.00717.54
8.1.60.0040.00417.62
8.1.50.0060.00317.66
8.1.40.0020.00517.69
8.1.30.0060.00317.77
8.1.20.0030.00517.80
8.1.10.0030.00517.55
8.1.00.0040.00417.64
8.0.300.0070.00018.77
8.0.290.0040.00417.04
8.0.280.0000.00718.34
8.0.270.0040.00417.32
8.0.260.0030.00316.95
8.0.250.0050.00317.00
8.0.240.0030.00317.13
8.0.230.0030.00316.98
8.0.220.0050.00217.00
8.0.210.0000.00716.98
8.0.200.0000.00617.07
8.0.190.0080.00017.07
8.0.180.0000.00817.00
8.0.170.0060.00317.07
8.0.160.0000.00816.96
8.0.150.0040.00416.99
8.0.140.0070.00016.98
8.0.130.0000.00713.49
8.0.120.0040.00417.01
8.0.110.0000.00716.96
8.0.100.0050.00316.82
8.0.90.0050.00216.99
8.0.80.0100.00717.02
8.0.70.0040.00416.91
8.0.60.0000.00717.07
8.0.50.0030.00617.07
8.0.30.0090.00917.19
8.0.20.0100.01317.47
8.0.10.0040.00416.96
8.0.00.0120.00516.69
7.4.330.0000.00615.04
7.4.320.0000.00616.65
7.4.300.0030.00316.75
7.4.290.0030.00316.73
7.4.280.0070.00016.76
7.4.270.0030.00616.63
7.4.260.0030.00316.63
7.4.250.0060.00316.47
7.4.240.0060.00116.68
7.4.230.0030.00416.50
7.4.220.0170.01016.56
7.4.210.0090.00716.71
7.4.200.0030.00316.55
7.4.190.0070.00016.85
7.4.160.0100.00716.74
7.4.150.0190.00617.40
7.4.140.0080.01117.86
7.4.130.0080.01216.64
7.4.120.0130.00616.67
7.4.110.0110.00716.63
7.4.100.0110.00816.81
7.4.90.0070.01016.71
7.4.80.0090.00919.39
7.4.70.0110.00516.61
7.4.60.0000.01716.86
7.4.50.0000.00816.54
7.4.40.0030.00922.77
7.4.30.0120.00316.61
7.4.00.0080.00615.07
7.3.330.0000.00513.32
7.3.320.0050.00013.12
7.3.310.0000.00716.48
7.3.300.0030.00316.39
7.3.290.0030.01716.52
7.3.280.0090.00616.38
7.3.270.0000.01717.40
7.3.260.0120.00616.45
7.3.250.0130.00516.54
7.3.240.0080.01116.72
7.3.230.0160.00316.79
7.3.210.0140.00716.38
7.3.200.0090.00619.39
7.3.190.0080.01416.45
7.3.180.0090.00616.71
7.3.170.0060.01216.55
7.3.160.0060.01016.83
7.3.120.0100.00714.91
7.3.110.0000.01115.24
7.3.100.0070.00715.26
7.3.90.0030.00914.92
7.3.80.0060.00915.10
7.3.70.0030.00714.62
7.3.60.0050.00314.81
7.3.50.0040.00715.01
7.3.40.0030.01414.88
7.3.30.0100.00014.91
7.3.20.0040.00816.63
7.3.10.0090.00616.96
7.3.00.0080.00616.84
7.2.330.0110.00816.76
7.2.320.0120.00616.59
7.2.310.0000.01616.78
7.2.300.0130.01016.94
7.2.290.0160.00616.83
7.2.250.0110.00715.04
7.2.240.0140.00315.23
7.2.230.0030.00715.18
7.2.220.0060.00615.30
7.2.210.0070.01015.04
7.2.200.0030.00615.13
7.2.190.0030.00915.23
7.2.180.0130.00015.17
7.2.170.0070.01015.42
7.2.00.0000.00919.73
7.1.330.0070.00715.95
7.1.320.0000.01015.85
7.1.310.0060.00315.93
7.1.300.0030.00715.85
7.1.290.0130.00315.85
7.1.280.0030.01015.75
7.1.270.0030.00916.00
7.1.260.0070.00715.79
7.1.100.0000.00918.27
7.1.70.0060.00917.11
7.1.60.0040.00819.82
7.1.50.0060.00617.10
7.1.00.0030.07722.32
7.0.200.0100.00016.82
7.0.140.0030.07321.92
7.0.60.0100.08319.79
7.0.50.0130.07317.80
7.0.40.0070.04720.07
7.0.30.0300.05020.22
7.0.20.0270.08320.23
7.0.10.0100.06020.01
7.0.00.0070.07020.17
5.6.280.0070.07021.12
5.6.210.0070.05020.50
5.6.200.0070.08018.22
5.6.190.0030.05020.35
5.6.180.0230.06320.27
5.6.170.0300.05720.45
5.6.160.0070.07320.61
5.6.150.0030.04018.18
5.6.140.0100.04718.18
5.6.130.0070.04018.12
5.6.120.0030.07021.06
5.6.110.0030.07021.00
5.6.100.0130.06720.96
5.6.90.0030.07320.95
5.6.80.0030.06020.40
5.5.350.0170.03320.46
5.5.340.0100.07017.90
5.5.330.0130.05720.40
5.5.320.0270.06020.27
5.5.310.0230.07320.33
5.5.300.0000.04317.92
5.5.290.0170.05717.96
5.5.280.0100.04720.75
5.5.270.0130.08020.79
5.5.260.0030.09020.66
5.5.250.0130.07320.49
5.5.240.0200.07020.03
5.4.450.0670.06019.09
5.4.440.0630.06719.54
5.4.430.0130.06019.53
5.4.420.0170.05719.25
5.4.410.0130.05718.93
5.4.400.0130.04718.79
5.4.390.0070.05318.70
5.4.380.0170.04718.78
5.4.370.0170.05018.56
5.4.360.0200.04718.77
5.4.350.0330.04718.48
5.4.340.0230.05718.66
5.4.320.0050.05012.46
5.4.310.0090.05012.45
5.4.300.0050.03712.46
5.4.290.0060.04012.45
5.4.280.0040.03712.34
5.4.270.0080.04112.34
5.4.260.0100.07318.86
5.4.250.0000.07318.77
5.4.240.0000.07318.99
5.4.230.0200.05719.00
5.4.220.0000.07318.98
5.4.210.0170.07018.70
5.4.200.0130.04718.92
5.4.190.0130.07318.72
5.4.180.0100.07018.87
5.4.170.0130.06018.71
5.4.160.0000.07018.86
5.4.150.0070.06018.78
5.4.140.0130.06716.44
5.4.130.0030.07016.38
5.4.120.0100.05016.23
5.4.110.0070.07716.41
5.4.100.0100.06716.45
5.4.90.0000.05316.29
5.4.80.0170.05316.38
5.4.70.0070.05716.33
5.4.60.0100.06016.23
5.4.50.0000.07316.40
5.4.40.0130.04316.43
5.4.30.0100.05716.38
5.4.20.0030.07716.37
5.4.10.0070.06716.46
5.4.00.0130.04315.69
5.3.290.0050.04412.80
5.3.280.0100.05014.46
5.3.270.0100.05314.75
5.3.260.0030.08014.61
5.3.250.0170.05714.30
5.3.240.0130.07014.44
5.3.230.0100.06714.61
5.3.220.0000.06314.57
5.3.210.0030.06314.42
5.3.200.0100.05014.34
5.3.190.0000.08014.34
5.3.180.0130.05714.45
5.3.170.0200.05014.57
5.3.160.0100.05014.57
5.3.150.0100.06014.55
5.3.140.0030.07314.55
5.3.130.0070.07314.56
5.3.120.0100.07714.46
5.3.110.0170.05714.46
5.3.100.0070.06713.73
5.3.90.0070.05313.71
5.3.80.0000.05713.95
5.3.70.0170.05714.03
5.3.60.0170.04013.93
5.3.50.0100.04713.96
5.3.40.0200.04713.99
5.3.30.0230.04713.92
5.3.20.0130.05313.60
5.3.10.0130.04713.50
5.3.00.0070.05313.33
5.2.170.0070.04311.23
5.2.160.0100.03711.16
5.2.150.0030.04311.06
5.2.140.0130.03710.90
5.2.130.0070.04711.00
5.2.120.0070.05711.19
5.2.110.0100.05011.25
5.2.100.0070.04011.11
5.2.90.0070.04011.07
5.2.80.0170.04711.10
5.2.70.0000.05011.02
5.2.60.0170.03711.07
5.2.50.0070.06010.93
5.2.40.0030.04710.92
5.2.30.0070.05711.13
5.2.20.0100.04011.05
5.2.10.0130.04311.07
5.2.00.0070.04710.62
5.1.60.0100.04710.18
5.1.50.0030.05010.08
5.1.40.0070.0439.83
5.1.30.0030.05010.33
5.1.20.0070.05310.41
5.1.10.0100.04010.25
5.1.00.0070.03010.21
5.0.50.0030.0378.60
5.0.40.0070.0238.55
5.0.30.0100.0438.15
5.0.20.0070.0238.34
5.0.10.0030.0278.08
5.0.00.0030.0408.21
4.4.90.0100.0237.40
4.4.80.0070.0237.40
4.4.70.0130.0177.40
4.4.60.0070.0237.40
4.4.50.0000.0307.40
4.4.40.0000.0377.40
4.4.30.0070.0277.40
4.4.20.0030.0307.40
4.4.10.0000.0237.40
4.4.00.0000.0337.40
4.3.110.0100.0177.40
4.3.100.0000.0237.40
4.3.90.0030.0207.40
4.3.80.0030.0307.40
4.3.70.0030.0207.40
4.3.60.0000.0307.40
4.3.50.0000.0237.40
4.3.40.0000.0377.40
4.3.30.0030.0207.40
4.3.20.0030.0207.40
4.3.10.0030.0207.40
4.3.00.0100.0236.95

preferences:
37.26 ms | 401 KiB | 5 Q