3v4l.org

run code in 300+ PHP versions simultaneously
<?php $user_email = 'asd@toyota.com'; $re_to = "[^@]+@[^@]+"; //"[^@]+@[^@]*toyota[^@]*\.[^@]+"; $re_to = ".+"; $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.0180.00318.53
8.3.50.0080.00921.97
8.3.40.0060.00918.67
8.3.30.0070.01118.87
8.3.20.0070.00020.38
8.3.10.0000.00821.98
8.3.00.0070.00022.25
8.2.180.0130.00316.38
8.2.170.0110.00422.96
8.2.160.0030.01020.98
8.2.150.0040.00424.18
8.2.140.0030.00624.66
8.2.130.0070.00026.16
8.2.120.0040.01219.33
8.2.110.0100.00019.27
8.2.100.0070.00418.22
8.2.90.0040.00419.05
8.2.80.0040.00417.97
8.2.70.0040.00417.37
8.2.60.0000.00917.90
8.2.50.0000.00818.22
8.2.40.0080.00020.55
8.2.30.0040.00419.18
8.2.20.0040.00417.65
8.2.10.0030.00617.61
8.2.00.0020.00517.59
8.1.280.0110.00325.92
8.1.270.0040.00422.04
8.1.260.0000.00826.35
8.1.250.0000.00828.09
8.1.240.0060.00323.92
8.1.230.0080.00420.32
8.1.220.0030.00817.79
8.1.210.0040.00418.77
8.1.200.0000.00817.23
8.1.190.0030.00717.22
8.1.180.0020.00518.10
8.1.170.0000.00918.63
8.1.160.0050.00218.79
8.1.150.0000.00720.18
8.1.140.0000.00817.41
8.1.130.0030.00317.82
8.1.120.0060.00317.50
8.1.110.0070.00017.46
8.1.100.0070.00017.45
8.1.90.0000.00717.45
8.1.80.0040.00417.31
8.1.70.0000.00717.45
8.1.60.0030.00617.57
8.1.50.0000.00817.45
8.1.40.0040.00417.54
8.1.30.0000.00717.45
8.1.20.0050.00317.69
8.1.10.0030.00517.38
8.1.00.0050.00317.36
8.0.300.0000.00918.84
8.0.290.0000.00716.75
8.0.280.0040.00418.42
8.0.270.0000.00717.16
8.0.260.0000.00616.79
8.0.250.0000.00716.91
8.0.240.0070.00017.05
8.0.230.0040.00416.99
8.0.220.0030.00316.86
8.0.210.0000.00616.85
8.0.200.0000.00717.00
8.0.190.0080.00017.03
8.0.180.0000.00716.92
8.0.170.0040.00416.89
8.0.160.0040.00416.90
8.0.150.0050.00216.97
8.0.140.0030.00316.89
8.0.130.0060.00013.33
8.0.120.0000.00716.93
8.0.110.0070.00016.80
8.0.100.0000.00717.01
8.0.90.0000.00716.74
8.0.80.0090.01316.83
8.0.70.0040.00416.96
8.0.60.0070.00016.87
8.0.50.0080.00016.73
8.0.30.0100.01016.98
8.0.20.0100.00817.40
8.0.10.0000.00716.95
8.0.00.0140.01416.87
7.4.330.0060.00015.00
7.4.320.0030.00316.44
7.4.300.0060.00016.53
7.4.290.0030.00616.55
7.4.280.0040.00416.43
7.4.270.0000.01016.54
7.4.260.0000.00616.56
7.4.250.0000.00716.40
7.4.240.0000.00716.59
7.4.230.0030.00316.55
7.4.220.0090.00916.55
7.4.210.0040.01016.54
7.4.200.0070.00016.43
7.4.190.0070.00016.69
7.4.160.0150.00316.41
7.4.150.0120.00617.40
7.4.140.0050.01217.86
7.4.130.0100.00816.46
7.4.120.0140.00616.43
7.4.110.0070.01016.43
7.4.100.0080.01016.62
7.4.90.0180.00016.47
7.4.80.0180.00019.39
7.4.70.0110.00516.50
7.4.60.0130.00516.50
7.4.50.0040.00416.55
7.4.40.0060.01022.77
7.4.30.0080.00816.43
7.4.00.0050.00314.68
7.3.330.0050.00013.16
7.3.320.0030.00313.24
7.3.310.0000.00716.23
7.3.300.0000.00616.23
7.3.290.0080.00716.29
7.3.280.0080.00716.37
7.3.270.0140.00317.40
7.3.260.0180.00616.67
7.3.250.0090.00916.57
7.3.240.0060.01216.51
7.3.230.0030.01316.52
7.3.210.0150.00616.50
7.3.200.0130.00319.39
7.3.190.0060.01616.63
7.3.180.0100.00616.33
7.3.170.0040.01216.45
7.3.160.0030.01216.44
7.3.120.0060.00914.99
7.2.330.0060.01216.40
7.2.320.0120.00616.76
7.2.310.0130.00916.66
7.2.300.0180.00016.78
7.2.290.0100.00616.54
7.2.60.0080.00616.64
7.2.00.0000.01219.31
7.1.200.0070.00715.64
7.1.100.0030.00618.04
7.1.70.0040.00417.26
7.1.60.0070.01419.82
7.1.50.0090.01217.05
7.1.00.0070.07322.33
7.0.200.0030.00716.83
7.0.140.0030.07322.05
7.0.60.0430.05319.86
7.0.50.0030.08017.80
7.0.40.0030.09020.00
7.0.30.0300.08320.13
7.0.20.0370.07720.09
7.0.10.0200.03720.02
7.0.00.0130.05020.29
5.6.280.0000.07320.86
5.6.210.0270.06720.60
5.6.200.0030.06018.14
5.6.190.0030.09020.39
5.6.180.3430.04720.32
5.6.170.0170.05320.50
5.6.160.0000.09320.51
5.6.150.0000.04318.11
5.6.140.0070.04018.16
5.6.130.0100.07018.12
5.6.120.0130.07721.11
5.6.110.0070.04020.98
5.6.100.0030.08721.01
5.6.90.0200.07321.00
5.6.80.0070.03720.37
5.6.70.3200.03320.34
5.5.350.0030.08020.38
5.5.340.0130.07317.93
5.5.330.0030.04320.29
5.5.320.0300.08320.30
5.5.310.0330.04320.30
5.5.300.0100.03317.91
5.5.290.0070.08317.95
5.5.280.0130.07720.87
5.5.270.0170.03720.81
5.5.260.0070.06020.87
5.5.250.0070.08720.60
5.5.240.0130.07720.11
5.4.450.0430.05719.33
5.4.440.0670.05319.52
5.4.430.0100.05319.15
5.4.420.0130.05319.32
5.4.410.0130.05319.26
5.4.400.1100.00018.72
5.4.390.1070.00018.63
5.4.380.0270.05318.72
5.4.370.0270.05318.65
5.4.360.0270.05318.61
5.4.350.0270.05718.59
5.4.340.0330.05318.68
5.4.320.0080.03612.45
5.4.310.0020.04512.45
5.4.300.0110.04512.45
5.4.290.0090.04212.45
5.4.280.0030.04012.35
5.4.270.0090.04312.35
5.4.260.0130.05718.70
5.4.250.0100.05319.01
5.4.240.0000.06318.89
5.4.230.0170.04318.77
5.4.220.0170.04718.64
5.4.210.0030.06018.87
5.4.200.0100.05018.83
5.4.190.0100.07718.71
5.4.180.0100.06018.77
5.4.170.0100.07318.99
5.4.160.0100.07318.86
5.4.150.0130.07318.92
5.4.140.0070.07716.25
5.4.130.0130.05716.42
5.4.120.0030.06316.41
5.4.110.0170.06716.35
5.4.100.0170.06716.43
5.4.90.0030.05016.47
5.4.80.0130.04016.50
5.4.70.0100.06016.33
5.4.60.0130.04316.18
5.4.50.0070.05016.49
5.4.40.0100.04716.45
5.4.30.0100.06016.22
5.4.20.0100.04716.41
5.4.10.0070.07316.41
5.4.00.0070.06015.87
5.3.290.0070.04412.80
5.3.280.0070.05014.45
5.3.270.0130.05014.61
5.3.260.0130.05714.70
5.3.250.0170.06714.45
5.3.240.0070.06014.65
5.3.230.0070.07714.62
5.3.220.0200.06014.48
5.3.210.0070.07714.57
5.3.200.0170.06714.48
5.3.190.0100.06314.58
5.3.180.0100.07314.61
5.3.170.0100.05014.57
5.3.160.0100.04314.43
5.3.150.0070.05014.71
5.3.140.0070.05314.57
5.3.130.0100.05714.43
5.3.120.0100.05014.41
5.3.110.0130.06014.32
5.3.100.0170.05713.96
5.3.90.0130.04714.06
5.3.80.0070.06313.87
5.3.70.0070.06714.03
5.3.60.0070.05013.87
5.3.50.0070.06313.94
5.3.40.0000.05713.89
5.3.30.0230.05014.00
5.3.20.0000.05313.57
5.3.10.0070.04713.59
5.3.00.0030.05713.64
5.2.170.0100.04011.12
5.2.160.0130.04711.16
5.2.150.0000.04711.15
5.2.140.0070.05711.07
5.2.130.0000.04310.93
5.2.120.0070.03710.98
5.2.110.0070.03711.19
5.2.100.0070.03711.25
5.2.90.0100.03711.02
5.2.80.0130.03710.85
5.2.70.0130.03311.09
5.2.60.0030.04310.81
5.2.50.0070.04311.04
5.2.40.0100.05310.91
5.2.30.0030.04710.89
5.2.20.0100.03710.97
5.2.10.0030.04010.62
5.2.00.0130.03010.61
5.1.60.0100.02710.02
5.1.50.0030.0339.95
5.1.40.0030.03710.04
5.1.30.0100.03010.40
5.1.20.0070.03710.56
5.1.10.0070.05010.12
5.1.00.0070.0339.97
5.0.50.0000.0308.73
5.0.40.0030.0278.55
5.0.30.0100.0508.27
5.0.20.0030.0278.11
5.0.10.0100.0278.25
5.0.00.0070.0438.21
4.4.90.0030.0207.44
4.4.80.0000.0237.44
4.4.70.0030.0307.44
4.4.60.0000.0307.44
4.4.50.0030.0207.44
4.4.40.0000.0407.44
4.4.30.0030.0207.44
4.4.20.0030.0237.44
4.4.10.0170.0177.44
4.4.00.0030.0337.44
4.3.110.0030.0207.44
4.3.100.0070.0177.44
4.3.90.0030.0207.44
4.3.80.0130.0337.44
4.3.70.0030.0207.44
4.3.60.0030.0207.44
4.3.50.0070.0177.44
4.3.40.0030.0337.44
4.3.30.0030.0207.44
4.3.20.0070.0177.44
4.3.10.0000.0237.44
4.3.00.0030.0237.07

preferences:
46.55 ms | 401 KiB | 5 Q