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.0110.00318.55
8.3.50.0150.00722.05
8.3.40.0070.01018.93
8.3.30.0140.00019.21
8.3.20.0070.00020.21
8.3.10.0040.00422.09
8.3.00.0070.00022.54
8.2.180.0130.01016.75
8.2.170.0070.00722.96
8.2.160.0110.00321.02
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0100.00026.16
8.2.120.0030.00619.48
8.2.110.0040.00420.38
8.2.100.0080.00417.96
8.2.90.0000.00819.09
8.2.80.0040.00417.97
8.2.70.0060.00317.88
8.2.60.0000.00718.03
8.2.50.0040.00418.07
8.2.40.0040.00418.22
8.2.30.0000.00818.08
8.2.20.0080.00017.84
8.2.10.0030.00617.88
8.2.00.0000.00917.96
8.1.280.0040.01125.92
8.1.270.0040.00423.91
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0060.00321.09
8.1.230.0080.00317.64
8.1.220.0030.00517.80
8.1.210.0030.00518.77
8.1.200.0030.00717.47
8.1.190.0000.00817.38
8.1.180.0000.00818.10
8.1.170.0000.00818.63
8.1.160.0000.00722.03
8.1.150.0080.00018.73
8.1.140.0000.00717.59
8.1.130.0000.00717.84
8.1.120.0030.00317.50
8.1.110.0000.00717.62
8.1.100.0070.00017.63
8.1.90.0000.00717.61
8.1.80.0040.00417.63
8.1.70.0040.00417.50
8.1.60.0020.00517.63
8.1.50.0000.00817.70
8.1.40.0000.00817.67
8.1.30.0030.00517.66
8.1.20.0030.00517.80
8.1.10.0000.00817.63
8.1.00.0080.00017.57
8.0.300.0000.00818.77
8.0.290.0000.00716.88
8.0.280.0030.00318.37
8.0.270.0070.00017.31
8.0.260.0080.00017.00
8.0.250.0040.00417.05
8.0.240.0030.00317.03
8.0.230.0000.00717.06
8.0.220.0070.00016.93
8.0.210.0070.00017.04
8.0.200.0040.00417.09
8.0.190.0070.00017.11
8.0.180.0030.00616.93
8.0.170.0000.00817.02
8.0.160.0050.00317.09
8.0.150.0040.00416.88
8.0.140.0040.00416.88
8.0.130.0000.00613.52
8.0.120.0040.00417.05
8.0.110.0070.00016.85
8.0.100.0050.00317.05
8.0.90.0040.00416.83
8.0.80.0120.00317.02
8.0.70.0060.00316.88
8.0.60.0070.00016.82
8.0.50.0040.00416.92
8.0.30.0090.01217.18
8.0.20.0110.00817.40
8.0.10.0080.00017.09
8.0.00.0050.01116.74
7.4.330.0000.00615.13
7.4.320.0000.00616.51
7.4.300.0000.00616.65
7.4.290.0030.00316.66
7.4.280.0000.00716.73
7.4.270.0080.00016.61
7.4.260.0000.00716.70
7.4.250.0000.00816.46
7.4.240.0040.00416.77
7.4.230.0070.00016.63
7.4.220.0080.00816.60
7.4.210.0080.00716.72
7.4.200.0000.00616.74
7.4.190.0000.00716.83
7.4.160.0120.00316.60
7.4.150.0140.00317.40
7.4.140.0120.00517.86
7.4.130.0070.01116.68
7.4.120.0130.00716.69
7.4.110.0100.00716.63
7.4.100.0080.01116.69
7.4.90.0060.01216.60
7.4.80.0090.00919.39
7.4.70.0160.00016.86
7.4.60.0100.00716.67
7.4.50.0040.00416.68
7.4.40.0110.00722.77
7.4.30.0110.00516.52
7.4.00.0050.01314.83
7.3.330.0060.00013.31
7.3.320.0000.00613.31
7.3.310.0000.00816.40
7.3.300.0070.00016.44
7.3.290.0150.00016.45
7.3.280.0090.00716.39
7.3.270.0070.01017.40
7.3.260.0070.01416.52
7.3.250.0070.01316.56
7.3.240.0190.00416.88
7.3.230.0000.01716.43
7.3.210.0090.01016.46
7.3.200.0060.00919.39
7.3.190.0130.00616.71
7.3.180.0130.00316.39
7.3.170.0080.00816.39
7.3.160.0130.00316.64
7.3.120.0070.01015.08
7.3.110.0040.00815.21
7.3.100.0070.01014.88
7.3.90.0040.00714.83
7.3.80.0080.00415.10
7.3.70.0040.00714.88
7.3.60.0030.01415.03
7.3.50.0100.00714.82
7.3.40.0040.01114.85
7.3.30.0030.01014.69
7.3.20.0130.00016.74
7.3.10.0090.00616.66
7.3.00.0030.01516.59
7.2.330.0040.01416.84
7.2.320.0030.01416.54
7.2.310.0180.00416.71
7.2.300.0110.00716.79
7.2.290.0060.01216.67
7.2.250.0060.01515.33
7.2.240.0030.01715.21
7.2.230.0040.01115.18
7.2.220.0110.00015.09
7.2.210.0060.00915.40
7.2.200.0060.00315.03
7.2.190.0100.00715.14
7.2.180.0070.00714.81
7.2.170.0030.00915.22
7.2.00.0060.00619.35
7.1.330.0130.00315.87
7.1.320.0030.00615.94
7.1.310.0030.01016.20
7.1.300.0070.01015.58
7.1.290.0030.01016.03
7.1.280.0100.00315.82
7.1.270.0100.00716.03
7.1.260.0030.01516.15
7.1.100.0030.00517.98
7.1.70.0030.00617.27
7.1.60.0070.00719.82
7.1.50.0080.00417.30
7.1.00.0070.07322.52
7.0.200.0000.00916.97
7.0.140.0070.06321.93
7.0.60.0030.08019.98
7.0.50.0100.07717.82
7.0.40.0100.04320.26
7.0.30.0270.05720.21
7.0.20.0230.05720.01
7.0.10.0200.05720.05
7.0.00.0130.06320.21
5.6.280.0000.10020.81
5.6.210.0170.05320.50
5.6.200.0100.04018.15
5.6.190.0130.07720.41
5.6.180.4130.04020.56
5.6.170.0330.03720.42
5.6.160.0030.05720.41
5.6.150.0070.08018.14
5.6.140.0200.05718.18
5.6.130.0100.03318.07
5.6.120.0070.08320.98
5.6.110.0000.04721.11
5.6.100.0170.07320.88
5.6.90.0030.07720.87
5.6.80.0070.06320.35
5.6.70.4400.04020.34
5.5.350.0070.07020.46
5.5.340.0130.07317.92
5.5.330.0030.10020.41
5.5.320.0400.06320.26
5.5.310.0230.03720.32
5.5.300.0030.04017.92
5.5.290.0070.06717.98
5.5.280.0070.07320.77
5.5.270.0070.04720.64
5.5.260.0130.06320.95
5.5.250.0100.03320.69
5.5.240.0130.05020.14
5.4.450.0100.06719.64
5.4.440.0430.06019.63
5.4.430.0100.05319.25
5.4.420.0100.05719.63
5.4.410.0100.05719.37
5.4.400.0870.00018.77
5.4.390.0800.00018.65
5.4.380.0300.06318.61
5.4.370.0070.06018.68
5.4.360.0070.06018.53
5.4.350.0200.05718.63
5.4.340.0230.05318.59
5.4.320.0040.04112.45
5.4.310.0060.03812.45
5.4.300.0070.03512.45
5.4.290.0080.03612.45
5.4.280.0060.03412.34
5.4.270.0080.03812.35
5.4.260.0130.04718.91
5.4.250.0070.08018.83
5.4.240.0130.05718.79
5.4.230.0130.07318.87
5.4.220.0200.07318.74
5.4.210.0200.07018.73
5.4.200.0200.06018.88
5.4.190.0170.04318.72
5.4.180.0130.05018.93
5.4.170.0100.07318.93
5.4.160.0170.05318.78
5.4.150.0030.08018.77
5.4.140.0070.05016.32
5.4.130.0030.05316.32
5.4.120.0030.07716.29
5.4.110.0030.05716.23
5.4.100.0100.06316.49
5.4.90.0170.06716.49
5.4.80.0130.06016.43
5.4.70.0070.07316.43
5.4.60.0030.06016.47
5.4.50.0170.05016.50
5.4.40.0170.06316.33
5.4.30.0130.06016.20
5.4.20.0130.06716.50
5.4.10.0200.06316.34
5.4.00.0170.05715.71
5.3.290.0080.03712.80
5.3.280.0030.06314.74
5.3.270.0170.05714.45
5.3.260.0170.04314.44
5.3.250.0070.07314.62
5.3.240.0000.06014.38
5.3.230.0030.06314.46
5.3.220.0100.06014.58
5.3.210.0130.06314.57
5.3.200.0100.05314.34
5.3.190.0000.07314.44
5.3.180.0100.07314.48
5.3.170.0170.06714.71
5.3.160.0100.06714.57
5.3.150.0200.05714.48
5.3.140.0030.07014.33
5.3.130.0170.04314.55
5.3.120.0070.05714.40
5.3.110.0130.05314.55
5.3.100.0130.05713.73
5.3.90.0030.07714.04
5.3.80.0070.06013.86
5.3.70.0100.05314.03
5.3.60.0000.07714.14
5.3.50.0070.06313.80
5.3.40.0070.05713.79
5.3.30.0070.06713.74
5.3.20.0130.06013.84
5.3.10.0130.04013.56
5.3.00.0100.04713.73
5.2.170.0070.04711.23
5.2.160.0070.04311.16
5.2.150.0030.05011.25
5.2.140.0000.04311.05
5.2.130.0130.05711.11
5.2.120.0070.03711.25
5.2.110.0100.03310.93
5.2.100.0070.06011.21
5.2.90.0030.04311.03
5.2.80.0170.04011.10
5.2.70.0070.05311.11
5.2.60.0000.05011.14
5.2.50.0030.04711.13
5.2.40.0100.04011.01
5.2.30.0100.05310.99
5.2.20.0030.04010.97
5.2.10.0030.04010.94
5.2.00.0170.04710.79
5.1.60.0000.0379.88
5.1.50.0030.03710.04
5.1.40.0070.03310.07
5.1.30.0030.05310.24
5.1.20.0070.04310.51
5.1.10.0070.04710.02
5.1.00.0100.03310.29
5.0.50.0070.0338.57
5.0.40.0030.0408.29
5.0.30.0030.0408.36
5.0.20.0030.0278.15
5.0.10.0070.0338.35
5.0.00.0000.0438.07
4.4.90.0000.0307.42
4.4.80.0000.0237.42
4.4.70.0000.0237.42
4.4.60.0070.0277.42
4.4.50.0000.0237.29
4.4.40.0070.0337.18
4.4.30.0030.0237.14
4.4.20.0000.0237.04
4.4.10.0030.0207.00
4.4.00.0030.0376.97
4.3.110.0030.0206.91
4.3.100.0000.0236.88
4.3.90.0000.0206.81
4.3.80.0030.0306.75
4.3.70.0030.0206.73
4.3.60.0030.0176.73
4.3.50.0000.0236.73
4.3.40.0030.0436.73
4.3.30.0000.0276.65
4.3.20.0000.0306.49
4.3.10.0070.0176.49
4.3.00.0070.0237.07

preferences:
56 ms | 401 KiB | 5 Q