3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pattern = '/^[^@]+@[^@]*toyota|lexus[^@]*\.[^@]+/'; $emails = array( 'asd@abctoyotacsl.ca', 'asd@abclexuscsl.com', 'asd@toyo.com', 'asd@lexis.ca', ); foreach($emails as $e){ echo preg_match($pattern, $e) ? 'true' : 'false'; }

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.70.0030.01216.75
8.3.60.0100.01018.55
8.3.50.0170.00122.04
8.3.40.0070.00718.93
8.3.30.0110.00319.14
8.3.20.0050.00220.16
8.3.10.0000.00821.88
8.3.00.0000.00822.45
8.2.180.0090.00616.63
8.2.170.0120.00322.96
8.2.160.0080.00621.07
8.2.150.0000.00724.18
8.2.140.0090.00024.66
8.2.130.0040.00426.16
8.2.120.0030.00517.75
8.2.110.0060.00320.35
8.2.100.0070.00417.84
8.2.90.0040.00419.02
8.2.80.0000.00917.97
8.2.70.0060.00317.63
8.2.60.0050.00317.93
8.2.50.0040.00418.07
8.2.40.0050.00318.25
8.2.30.0030.00317.95
8.2.20.0000.00717.80
8.2.10.0030.00519.61
8.2.00.0050.00317.96
8.1.280.0150.00325.92
8.1.270.0040.00421.96
8.1.260.0040.00426.35
8.1.250.0030.00528.09
8.1.240.0040.00423.68
8.1.230.0060.00622.73
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0030.00617.35
8.1.190.0050.00317.35
8.1.180.0040.00418.10
8.1.170.0050.00318.83
8.1.160.0040.00421.97
8.1.150.0000.00818.78
8.1.140.0000.00717.49
8.1.130.0030.00317.75
8.1.120.0030.00617.62
8.1.110.0080.00017.52
8.1.100.0040.00417.49
8.1.90.0000.00817.52
8.1.80.0040.00417.61
8.1.70.0000.00717.54
8.1.60.0060.00317.76
8.1.50.0070.00017.64
8.1.40.0000.00817.66
8.1.30.0040.00417.75
8.1.20.0000.00917.76
8.1.10.0050.00317.66
8.1.00.0020.00517.50
8.0.300.0000.00718.77
8.0.290.0040.00416.88
8.0.280.0000.00718.36
8.0.270.0070.00017.18
8.0.260.0000.00616.83
8.0.250.0070.00017.11
8.0.240.0030.00617.07
8.0.230.0040.00417.07
8.0.220.0040.00417.03
8.0.210.0000.00817.09
8.0.200.0040.00416.98
8.0.190.0020.00517.09
8.0.180.0000.00716.98
8.0.170.0040.00417.07
8.0.160.0000.00716.98
8.0.150.0000.00716.93
8.0.140.0070.00017.03
8.0.130.0030.00313.42
8.0.120.0000.00816.99
8.0.110.0000.00916.91
8.0.100.0080.00016.89
8.0.90.0000.00716.98
8.0.80.0130.00316.98
8.0.70.0000.00716.90
8.0.60.0040.00416.90
8.0.50.0000.00816.93
8.0.30.0150.00517.21
8.0.20.0090.00817.40
8.0.10.0070.00017.13
8.0.00.0230.01717.01
7.4.330.0020.00215.11
7.4.320.0040.00416.79
7.4.300.0030.00316.56
7.4.290.0030.00516.81
7.4.280.0030.00316.61
7.4.270.0000.00716.81
7.4.260.0000.00816.63
7.4.250.0040.00416.75
7.4.240.0040.00416.82
7.4.230.0000.00716.74
7.4.220.0060.01316.78
7.4.210.0100.00716.80
7.4.200.0080.00016.88
7.4.190.0040.00416.82
7.4.160.0100.01316.82
7.4.150.0110.00717.40
7.4.140.0130.00517.86
7.4.130.0110.01116.66
7.4.120.0100.01116.74
7.4.110.0060.01016.52
7.4.100.0110.00616.49
7.4.90.0150.00316.60
7.4.80.0100.01019.39
7.4.70.0080.00816.58
7.4.60.0180.00016.56
7.4.50.0050.00016.71
7.4.40.0040.01422.77
7.4.30.0120.00316.49
7.4.00.0080.00815.07
7.3.330.0060.00013.25
7.3.320.0020.00213.08
7.3.310.0040.00416.36
7.3.300.0070.00016.45
7.3.290.0090.00616.43
7.3.280.0090.00916.46
7.3.270.0070.01017.40
7.3.260.0080.01216.51
7.3.250.0080.01016.43
7.3.240.0080.01616.43
7.3.230.0130.01016.80
7.3.210.0140.00316.43
7.3.200.0090.01019.39
7.3.190.0140.00816.82
7.3.180.0100.00616.71
7.3.170.0140.00716.53
7.3.160.0110.00416.43
7.3.120.0030.01415.13
7.3.110.0090.00615.07
7.3.100.0090.00615.19
7.3.90.0060.00314.96
7.3.80.0060.00314.68
7.3.70.0030.01215.08
7.3.60.0130.00614.93
7.3.50.0060.00314.93
7.3.40.0060.01014.88
7.3.30.0030.01314.88
7.3.20.0080.00816.61
7.3.10.0030.01016.72
7.3.00.0060.00616.88
7.2.330.0090.00916.71
7.2.320.0120.00416.64
7.2.310.0060.01616.84
7.2.300.0070.01016.67
7.2.290.0080.01116.60
7.2.250.0060.00915.14
7.2.240.0150.00415.20
7.2.230.0000.01615.05
7.2.220.0140.00415.15
7.2.210.0000.01315.27
7.2.200.0040.01115.42
7.2.190.0140.00714.85
7.2.180.0000.01614.99
7.2.170.0030.01015.14
7.2.00.0120.00919.50
7.1.330.0070.00716.13
7.1.320.0060.00915.95
7.1.310.0000.00815.80
7.1.300.0030.00915.56
7.1.290.0040.00715.78
7.1.280.0040.01115.94
7.1.270.0070.01016.15
7.1.260.0080.00316.01
7.1.100.0080.00818.50
7.1.70.0160.00317.26
7.1.60.0000.02219.82
7.1.50.0000.01017.13
7.1.00.0000.08022.50
7.0.200.0030.00316.85
7.0.140.0030.07722.21
7.0.60.0100.06719.95
7.0.50.0070.07017.88
7.0.40.0100.06720.42
7.0.30.0270.07020.20
7.0.20.0200.05320.05
7.0.10.0270.04320.21
7.0.00.0000.08320.21
5.6.280.0070.09021.10
5.6.210.0100.08320.70
5.6.200.0170.07018.18
5.6.190.0070.08720.49
5.6.180.3430.04320.27
5.6.170.0230.05720.46
5.6.160.0070.08320.35
5.6.150.0030.05018.12
5.6.140.0000.04718.07
5.6.130.0170.06018.18
5.6.120.0070.03721.04
5.6.110.0130.08021.04
5.6.100.0070.04021.11
5.6.90.0030.04720.99
5.6.80.0070.08320.38
5.6.70.0230.07320.49
5.5.350.0070.07320.41
5.5.340.0200.06318.07
5.5.330.0030.08720.29
5.5.320.0370.07020.21
5.5.310.0270.06720.30
5.5.300.0030.04718.02
5.5.290.0100.07318.02
5.5.280.0030.05020.88
5.5.270.0170.07320.75
5.5.260.0030.04720.81
5.5.250.0000.08020.57
5.5.240.0200.07020.27
5.4.450.0400.05019.57
5.4.440.0130.05019.41
5.4.430.0300.04319.40
5.4.420.0400.04319.21
5.4.410.0130.04319.36
5.4.400.0170.05318.75
5.4.390.0100.05318.72
5.4.380.0970.04718.52
5.4.370.0170.05018.74
5.4.360.0200.04318.60
5.4.350.0230.04318.46
5.4.340.0130.05018.58
5.4.320.0060.03612.45
5.4.310.0060.04212.45
5.4.300.0070.03412.46
5.4.290.0040.03912.45
5.4.280.0080.03212.35
5.4.270.0130.06718.88
5.4.260.0100.07718.84
5.4.250.0100.06319.00
5.4.240.0130.07318.98
5.4.230.0100.05318.74
5.4.220.0200.05718.97
5.4.210.0070.07019.00
5.4.200.0130.05718.93
5.4.190.0130.06018.78
5.4.180.0100.07719.16
5.4.170.0170.05018.97
5.4.160.0100.05319.07
5.4.150.0130.06019.02
5.4.140.0130.05316.54
5.4.130.0100.04716.58
5.4.120.0100.04716.38
5.4.110.0170.04316.52
5.4.100.0170.05316.35
5.4.90.0030.05316.36
5.4.80.0130.06016.33
5.4.70.0130.04316.33
5.4.60.0030.05716.58
5.4.50.0030.06016.57
5.4.40.0100.05716.60
5.4.30.0070.05016.48
5.4.20.0100.05016.52
5.4.10.0070.05316.32
5.4.00.0000.05715.83
5.3.290.0070.04112.80
5.3.280.0070.06314.65
5.3.270.0130.05714.78
5.3.260.0130.05014.76
5.3.250.0070.05714.79
5.3.240.0000.05714.76
5.3.230.0130.04714.73
5.3.220.0130.06314.71
5.3.210.0230.03314.76
5.3.200.0130.04314.56
5.3.190.0070.06014.36
5.3.180.0070.05014.65
5.3.170.0130.06714.39
5.3.160.0130.06314.55
5.3.150.0130.06014.49
5.3.140.0130.04314.64
5.3.130.0100.07714.64
5.3.120.0170.04314.69
5.3.110.0170.04314.36
5.3.100.0070.05014.10
5.3.90.0070.07714.17
5.3.80.0130.07014.00
5.3.70.0070.06314.19
5.3.60.0100.05014.17
5.3.50.0030.06013.75
5.3.40.0130.04313.98
5.3.30.0100.04713.96
5.3.20.0170.04713.80
5.3.10.0030.06713.80
5.3.00.0100.05013.70
5.2.170.0030.06711.38
5.2.160.0030.04311.31
5.2.150.0070.05011.07
5.2.140.0070.04710.95
5.2.130.0070.05011.08
5.2.120.0130.03711.29
5.2.110.0100.04711.33
5.2.100.0030.04311.08
5.2.90.0030.04711.24
5.2.80.0030.04311.22
5.2.70.0070.04011.22
5.2.60.0100.04011.00
5.2.50.0030.04010.96
5.2.40.0100.04311.24
5.2.30.0100.04710.96
5.2.20.0070.04010.89
5.2.10.0070.03710.85
5.2.00.0030.06710.91
5.1.60.0030.03310.27
5.1.50.0100.03710.14
5.1.40.0000.04010.00
5.1.30.0070.03710.32
5.1.20.0070.03310.57
5.1.10.0070.03310.26
5.1.00.0030.04310.14
5.0.50.0030.0308.74
5.0.40.0130.0208.72
5.0.30.0000.0478.09
5.0.20.0070.0238.17
5.0.10.0030.0308.44
5.0.00.0070.0408.25
4.4.90.0000.0237.48
4.4.80.0030.0207.48
4.4.70.0070.0237.48
4.4.60.0070.0277.48
4.4.50.0000.0237.48
4.4.40.0100.0277.48
4.4.30.0030.0207.48
4.4.20.0100.0137.48
4.4.10.0000.0337.48
4.4.00.0030.0337.48
4.3.110.0030.0207.48
4.3.100.0030.0207.48
4.3.90.0030.0237.48
4.3.80.0000.0377.48
4.3.70.0000.0237.48
4.3.60.0100.0207.48
4.3.50.0000.0237.48
4.3.40.0000.0377.48
4.3.30.0000.0237.48
4.3.20.0030.0207.48
4.3.10.0030.0207.46
4.3.00.0100.01315.59

preferences:
49.64 ms | 401 KiB | 5 Q