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.0140.00318.45
8.3.50.0150.00521.99
8.3.40.0040.01118.97
8.3.30.0040.01118.97
8.3.20.0000.00720.04
8.3.10.0080.00022.09
8.3.00.0080.00022.43
8.2.180.0070.01116.50
8.2.170.0110.00422.96
8.2.160.0110.00320.77
8.2.150.0040.00424.18
8.2.140.0030.00624.66
8.2.130.0110.00426.16
8.2.120.0050.00319.36
8.2.110.0120.00619.45
8.2.100.0060.00619.57
8.2.90.0050.00319.05
8.2.80.0050.00317.97
8.2.70.0000.00817.63
8.2.60.0030.00617.93
8.2.50.0000.00918.10
8.2.40.0040.00418.10
8.2.30.0040.00418.05
8.2.20.0040.00417.54
8.2.10.0030.00517.74
8.2.00.0040.00417.82
8.1.280.0140.00325.92
8.1.270.0080.00022.20
8.1.260.0000.00726.35
8.1.250.0030.00728.09
8.1.240.0090.00023.88
8.1.230.0040.00717.77
8.1.220.0030.00617.74
8.1.210.0000.00818.77
8.1.200.0040.00417.35
8.1.190.0000.00817.23
8.1.180.0030.00518.10
8.1.170.0030.00618.60
8.1.160.0070.00021.99
8.1.150.0000.00718.52
8.1.140.0070.00017.37
8.1.130.0000.00717.93
8.1.120.0040.00417.33
8.1.110.0040.00417.41
8.1.100.0000.00717.41
8.1.90.0040.00417.43
8.1.80.0040.00417.42
8.1.70.0030.00317.35
8.1.60.0000.00817.47
8.1.50.0040.00417.52
8.1.40.0050.00317.37
8.1.30.0000.00817.50
8.1.20.0030.00617.46
8.1.10.0080.00017.59
8.1.00.0040.00417.36
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0070.00018.43
8.0.270.0030.00317.23
8.0.260.0030.00316.93
8.0.250.0030.00317.00
8.0.240.0000.00716.94
8.0.230.0000.00717.02
8.0.220.0040.00416.88
8.0.210.0060.00016.86
8.0.200.0030.00316.93
8.0.190.0000.00816.89
8.0.180.0050.00216.87
8.0.170.0040.00416.95
8.0.160.0040.00416.98
8.0.150.0040.00416.80
8.0.140.0040.00416.89
8.0.130.0030.00313.46
8.0.120.0020.00516.81
8.0.110.0070.00016.98
8.0.100.0000.00716.96
8.0.90.0070.00016.85
8.0.80.0060.01016.86
8.0.70.0070.00016.96
8.0.60.0000.00816.84
8.0.50.0070.00016.91
8.0.30.0090.01017.13
8.0.20.0120.00617.40
8.0.10.0070.00016.90
8.0.00.0080.00916.61
7.4.330.0050.00015.07
7.4.320.0070.00016.36
7.4.300.0030.00316.38
7.4.290.0040.00416.52
7.4.280.0000.00716.28
7.4.270.0000.00816.54
7.4.260.0040.00416.45
7.4.250.0000.00716.54
7.4.240.0070.00016.43
7.4.230.0000.00716.55
7.4.220.0070.01716.42
7.4.210.0090.00816.46
7.4.200.0070.00016.53
7.4.190.0050.00316.62
7.4.160.0070.00716.70
7.4.150.0070.01517.40
7.4.140.0080.01017.86
7.4.130.0100.00816.47
7.4.120.0100.00716.49
7.4.110.0070.01016.34
7.4.100.0090.01516.44
7.4.90.0130.00316.51
7.4.80.0140.00619.39
7.4.70.0090.00916.49
7.4.60.0120.00916.55
7.4.50.0030.00516.33
7.4.40.0000.01622.77
7.4.30.0050.01116.59
7.4.00.0070.00715.10
7.3.330.0020.00213.14
7.3.320.0050.00013.05
7.3.310.0030.00516.28
7.3.300.0000.00716.29
7.3.290.0040.01616.26
7.3.280.0080.00716.23
7.3.270.0110.00617.40
7.3.260.0090.00916.48
7.3.250.0110.00616.23
7.3.240.0140.00316.39
7.3.230.0100.00916.39
7.3.210.0030.01916.33
7.3.200.0070.01619.39
7.3.190.0070.01516.27
7.3.180.0060.01016.28
7.3.170.0070.01016.31
7.3.160.0080.00816.33
7.3.120.0000.01214.65
7.2.330.0070.01116.37
7.2.320.0120.00616.48
7.2.310.0060.01016.66
7.2.300.0120.00616.43
7.2.290.0000.01716.49
7.2.00.0060.00919.12
7.1.100.0060.00618.16
7.1.70.0000.00717.14
7.1.60.0070.01419.82
7.1.50.0100.00716.99
7.1.00.0070.07322.28
7.0.200.0000.00716.83
7.0.140.0070.06722.18
7.0.60.0100.07319.93
7.0.50.0030.08317.88
7.0.40.0070.07720.42
7.0.30.0470.04320.34
7.0.20.0270.08720.03
7.0.10.0030.05320.20
7.0.00.0130.07320.17
5.6.280.0030.06721.07
5.6.210.0100.05720.51
5.6.200.0130.07718.21
5.6.190.0000.09020.49
5.6.180.0370.07320.56
5.6.170.0200.03720.41
5.6.160.0030.04020.33
5.6.150.0070.03718.09
5.6.140.0100.05718.16
5.6.130.0070.04318.22
5.6.120.0030.09721.01
5.6.110.0230.05321.08
5.6.100.0100.08320.97
5.6.90.0070.05020.98
5.6.80.0030.05720.32
5.6.70.3230.03720.36
5.5.350.0030.05020.40
5.5.340.0070.04317.89
5.5.330.0070.04020.25
5.5.320.0270.04320.31
5.5.310.0230.06320.19
5.5.300.0100.06317.94
5.5.290.0130.07718.00
5.5.280.0100.06720.76
5.5.270.0000.05720.71
5.5.260.0070.03720.79
5.5.250.0030.08720.57
5.5.240.0030.07720.03
5.4.450.0530.06319.48
5.4.440.0170.07019.41
5.4.430.0100.06319.29
5.4.420.0130.05719.15
5.4.410.0100.05319.43
5.4.400.0830.00018.72
5.4.390.0730.00018.65
5.4.380.0170.06318.56
5.4.370.0300.04718.71
5.4.360.0200.05318.65
5.4.350.0130.05318.63
5.4.340.0170.05018.63
5.4.320.0010.04212.45
5.4.310.0050.04012.45
5.4.300.0060.04012.45
5.4.290.0050.03812.45
5.4.280.0040.03712.35
5.4.270.0060.04112.34
5.4.260.0070.06718.93
5.4.250.0030.05318.70
5.4.240.0100.05018.70
5.4.230.0070.05318.88
5.4.220.0100.05718.99
5.4.210.0030.06318.75
5.4.200.0070.06018.94
5.4.190.0130.06718.88
5.4.180.0030.05318.92
5.4.170.0100.07718.63
5.4.160.0030.05718.91
5.4.150.0230.06318.70
5.4.140.0100.05016.45
5.4.130.0030.05016.26
5.4.120.0100.04716.39
5.4.110.0070.05016.53
5.4.100.0130.05016.36
5.4.90.0070.04716.36
5.4.80.0000.05316.43
5.4.70.0030.07716.41
5.4.60.0000.05716.38
5.4.50.0100.05316.40
5.4.40.0070.06716.53
5.4.30.0030.05016.36
5.4.20.0070.05016.32
5.4.10.0030.08016.32
5.4.00.0070.06315.69
5.3.290.0120.03312.80
5.3.280.0130.05014.74
5.3.270.0070.05314.38
5.3.260.0030.05714.65
5.3.250.0070.05314.70
5.3.240.0130.07314.70
5.3.230.0070.05014.47
5.3.220.0070.06014.56
5.3.210.0030.06714.58
5.3.200.0130.06014.59
5.3.190.0130.04314.50
5.3.180.0070.05314.48
5.3.170.0070.06714.65
5.3.160.0030.05314.27
5.3.150.0100.05014.71
5.3.140.0130.05014.70
5.3.130.0070.06314.55
5.3.120.0170.06714.55
5.3.110.0030.05314.59
5.3.100.0070.05013.81
5.3.90.0030.05014.11
5.3.80.0170.04714.03
5.3.70.0130.04714.06
5.3.60.0030.05013.70
5.3.50.0070.05014.09
5.3.40.0100.07013.86
5.3.30.0100.06313.61
5.3.20.0030.05313.73
5.3.10.0100.06713.54
5.3.00.0070.04713.41
5.2.170.0070.05711.14
5.2.160.0030.06311.23
5.2.150.0100.06011.14
5.2.140.0070.04311.24
5.2.130.0070.04010.98
5.2.120.0000.05011.11
5.2.110.0030.04710.98
5.2.100.0170.04011.09
5.2.90.0030.04311.12
5.2.80.0070.04011.10
5.2.70.0130.04011.02
5.2.60.0030.04710.97
5.2.50.0070.03711.03
5.2.40.0000.04311.00
5.2.30.0070.04010.73
5.2.20.0030.04010.87
5.2.10.0070.03710.87
5.2.00.0100.03710.48
5.1.60.0000.0379.95
5.1.50.0070.03710.18
5.1.40.0070.03010.01
5.1.30.0030.03710.16
5.1.20.0100.03010.43
5.1.10.0070.03310.00
5.1.00.0100.03310.08
5.0.50.0000.0308.63
5.0.40.0030.0278.29
5.0.30.0130.0438.27
5.0.20.0000.0308.27
5.0.10.0000.0308.21
5.0.00.0030.0438.08
4.4.90.0000.0237.43
4.4.80.0030.0207.43
4.4.70.0030.0237.43
4.4.60.0070.0177.43
4.4.50.0000.0237.43
4.4.40.0070.0277.43
4.4.30.0030.0277.43
4.4.20.0000.0307.43
4.4.10.0070.0177.43
4.4.00.0000.0337.43
4.3.110.0030.0207.43
4.3.100.0030.0207.43
4.3.90.0000.0207.43
4.3.80.0000.0377.43
4.3.70.0030.0207.43
4.3.60.0070.0137.43
4.3.50.0030.0237.43
4.3.40.0000.0377.43
4.3.30.0030.0277.43
4.3.20.0070.0177.43
4.3.10.0030.0207.43
4.3.00.0070.0277.07

preferences:
37.44 ms | 400 KiB | 5 Q