3v4l.org

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

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.0100.01018.56
8.3.50.0200.00922.13
8.3.40.0060.00918.98
8.3.30.0090.00919.01
8.3.20.0070.00020.30
8.3.10.0080.00021.92
8.3.00.0080.00022.44
8.2.180.0090.00616.63
8.2.170.0120.00622.96
8.2.160.0110.00320.97
8.2.150.0030.00624.18
8.2.140.0000.00924.66
8.2.130.0070.00026.16
8.2.120.0080.00017.63
8.2.110.0060.00322.35
8.2.100.0100.00319.59
8.2.90.0030.00519.22
8.2.80.0040.00419.66
8.2.70.0040.00417.75
8.2.60.0030.00817.80
8.2.50.0000.00918.07
8.2.40.0030.00618.16
8.2.30.0060.00318.01
8.2.20.0000.00817.70
8.2.10.0000.00819.68
8.2.00.0000.00717.86
8.1.280.0100.00725.92
8.1.270.0030.00522.16
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0100.00018.57
8.1.230.0030.00819.10
8.1.220.0040.00417.76
8.1.210.0040.00418.77
8.1.200.0000.01017.48
8.1.190.0030.00617.55
8.1.180.0000.00818.10
8.1.170.0030.00618.57
8.1.160.0050.00221.99
8.1.150.0000.00718.77
8.1.140.0040.00417.52
8.1.130.0030.00517.77
8.1.120.0000.00817.52
8.1.110.0080.00017.65
8.1.100.0040.00417.69
8.1.90.0030.00517.46
8.1.80.0040.00417.63
8.1.70.0000.00717.52
8.1.60.0050.00317.79
8.1.50.0020.00517.65
8.1.40.0080.00017.73
8.1.30.0080.00017.86
8.1.20.0000.00817.84
8.1.10.0050.00317.65
8.1.00.0040.00417.58
8.0.300.0040.00418.77
8.0.290.0070.00017.05
8.0.280.0000.00818.53
8.0.270.0030.00317.34
8.0.260.0030.00316.98
8.0.250.0030.00317.16
8.0.240.0030.00617.06
8.0.230.0050.00217.15
8.0.220.0000.00716.98
8.0.210.0000.00716.94
8.0.200.0030.00317.04
8.0.190.0000.00817.12
8.0.180.0000.00717.13
8.0.170.0000.00817.10
8.0.160.0050.00316.98
8.0.150.0000.00716.90
8.0.140.0000.00717.02
8.0.130.0000.00613.51
8.0.120.0000.00917.03
8.0.110.0030.00516.98
8.0.100.0070.00017.05
8.0.90.0030.00617.11
8.0.80.0080.00617.03
8.0.70.0070.00017.06
8.0.60.0000.00817.16
8.0.50.0000.00716.96
8.0.30.0100.01217.24
8.0.20.0150.00317.40
8.0.10.0080.00017.20
8.0.00.0110.01016.98
7.4.330.0050.00015.17
7.4.320.0000.00716.72
7.4.300.0040.00416.74
7.4.290.0030.00316.63
7.4.280.0000.00716.75
7.4.270.0070.00016.82
7.4.260.0000.00716.71
7.4.250.0000.00716.72
7.4.240.0020.00616.79
7.4.230.0030.00316.64
7.4.220.0100.00716.90
7.4.210.0060.00916.85
7.4.200.0000.00716.85
7.4.190.0000.00716.77
7.4.160.0090.00616.72
7.4.150.0060.01117.40
7.4.140.0160.00317.86
7.4.130.0120.00916.81
7.4.120.0120.00516.72
7.4.110.0130.00316.91
7.4.100.0120.00616.60
7.4.90.0060.01116.59
7.4.80.0130.00719.39
7.4.70.0080.00816.87
7.4.60.0080.00816.63
7.4.50.0000.00516.61
7.4.40.0070.00722.77
7.4.30.0140.00416.65
7.4.00.0030.01015.32
7.3.330.0080.00013.31
7.3.320.0030.00313.15
7.3.310.0000.00716.38
7.3.300.0030.00316.40
7.3.290.0060.01016.48
7.3.280.0110.00616.42
7.3.270.0040.01417.40
7.3.260.0090.00916.43
7.3.250.0060.01116.69
7.3.240.0190.00016.67
7.3.230.0090.00916.48
7.3.210.0110.00716.79
7.3.200.0130.00919.39
7.3.190.0120.01016.72
7.3.180.0100.01316.75
7.3.170.0030.01316.80
7.3.160.0060.01016.88
7.3.120.0000.01214.75
7.2.330.0060.01316.65
7.2.320.0160.00616.79
7.2.310.0110.00616.79
7.2.300.0110.00616.92
7.2.290.0080.00816.68
7.2.00.0250.00819.42
7.1.200.0070.00715.96
7.1.100.0030.00818.41
7.1.70.0000.00817.10
7.1.60.0030.01017.17
7.1.50.0060.01516.83
7.1.00.0030.07322.47
7.0.200.0070.01417.05
7.0.140.0000.07722.10
7.0.60.0070.08019.95
7.0.50.0070.06317.85
7.0.40.0070.04020.22
7.0.30.0430.04320.11
7.0.20.0230.06020.34
7.0.10.0130.04720.02
7.0.00.0000.05720.01
5.6.280.0030.07321.13
5.6.210.0170.07320.52
5.6.200.0000.07018.13
5.6.190.0100.08720.35
5.6.180.0270.07720.33
5.6.170.0230.04320.41
5.6.160.0000.07320.40
5.6.150.0030.08318.13
5.6.140.0130.06718.15
5.6.130.0070.08718.08
5.6.120.0100.04721.01
5.6.110.0070.08021.04
5.6.100.0130.07021.00
5.6.90.0030.04720.96
5.6.80.0030.06720.50
5.6.70.3230.03720.52
5.5.350.0130.07320.36
5.5.340.0100.07018.02
5.5.330.0170.07320.15
5.5.320.0400.05320.20
5.5.310.0270.03720.21
5.5.300.0070.07317.95
5.5.290.0030.04018.02
5.5.280.0030.08720.84
5.5.270.0130.08020.72
5.5.260.0100.08020.86
5.5.250.0070.08320.57
5.5.240.0070.07020.23
5.4.450.0900.04319.57
5.4.440.1100.04019.46
5.4.430.0230.05319.32
5.4.420.0400.05019.13
5.4.410.0170.06319.48
5.4.400.0030.07018.74
5.4.390.0100.05018.59
5.4.380.0870.05718.68
5.4.370.0200.04718.59
5.4.360.0070.06018.68
5.4.350.0170.05018.68
5.4.340.0130.05318.50
5.4.320.0100.03912.45
5.4.310.0070.04712.46
5.4.300.0070.04012.46
5.4.290.0070.03612.45
5.4.280.0060.03712.35
5.4.270.0100.05318.91
5.4.260.0130.05019.03
5.4.250.0170.05019.02
5.4.240.0170.05018.98
5.4.230.0070.05719.00
5.4.220.0130.05318.99
5.4.210.0070.05718.84
5.4.200.0030.05718.88
5.4.190.0000.06018.91
5.4.180.0130.07018.94
5.4.170.0030.07019.02
5.4.160.0130.06718.96
5.4.150.0230.05018.74
5.4.140.0070.05716.43
5.4.130.0030.05316.40
5.4.120.0030.05316.38
5.4.110.0270.05316.51
5.4.100.0130.06316.61
5.4.90.0030.07316.44
5.4.80.0100.04316.50
5.4.70.0130.04316.50
5.4.60.0200.04016.37
5.4.50.0030.07316.48
5.4.40.0030.07016.55
5.4.30.0100.05316.48
5.4.20.0170.04016.27
5.4.10.0100.05016.46
5.4.00.0070.05316.02
5.3.290.0080.04612.80
5.3.280.0070.05714.63
5.3.270.0070.05714.53
5.3.260.0070.05314.75
5.3.250.0070.05314.80
5.3.240.0130.07014.60
5.3.230.0100.05014.41
5.3.220.0170.04714.71
5.3.210.0030.07014.52
5.3.200.0070.04714.72
5.3.190.0100.05014.49
5.3.180.0070.05014.37
5.3.170.0130.04314.67
5.3.160.0130.04314.67
5.3.150.0100.07014.69
5.3.140.0000.05714.54
5.3.130.0000.06714.59
5.3.120.0100.05014.55
5.3.110.0070.05314.72
5.3.100.0100.05714.02
5.3.90.0130.04314.21
5.3.80.0070.05314.00
5.3.70.0070.05314.11
5.3.60.0170.04314.04
5.3.50.0100.05013.93
5.3.40.0070.05314.14
5.3.30.0130.04313.90
5.3.20.0030.05713.73
5.3.10.0030.05013.57
5.3.00.0070.04713.63
5.2.170.0100.05711.25
5.2.160.0070.04311.26
5.2.150.0030.04711.36
5.2.140.0030.06311.26
5.2.130.0230.03711.02
5.2.120.0000.04711.04
5.2.110.0000.04711.32
5.2.100.0030.04311.33
5.2.90.0030.05311.25
5.2.80.0130.04011.32
5.2.70.0000.05311.02
5.2.60.0100.04011.18
5.2.50.0070.04711.13
5.2.40.0030.04311.14
5.2.30.0100.04311.03
5.2.20.0000.04311.16
5.2.10.0000.05010.91
5.2.00.0070.03710.91
5.1.60.0170.02310.29
5.1.50.0170.03310.30
5.1.40.0000.04010.28
5.1.30.0030.05310.45
5.1.20.0070.03710.63
5.1.10.0030.03710.05
5.1.00.0000.04010.38
5.0.50.0070.0238.53
5.0.40.0000.0338.48
5.0.30.0070.0478.53
5.0.20.0030.0278.50
5.0.10.0070.0278.26
5.0.00.0000.0438.13
4.4.90.0100.0176.04
4.4.80.0070.0205.93
4.4.70.0000.0275.84
4.4.60.0000.0235.89
4.4.50.0000.0235.91
4.4.40.0030.0335.79
4.4.30.0000.0235.80
4.4.20.0030.0175.94
4.4.10.0000.0236.03
4.4.00.0000.0375.93
4.3.110.0000.0305.83
4.3.100.0030.0305.81
4.3.90.0000.0305.78
4.3.80.0070.0305.71
4.3.70.0000.0235.82
4.3.60.0000.0235.82
4.3.50.0100.0135.75
4.3.40.0030.0335.78
4.3.30.0000.0275.25
4.3.20.0030.0305.25
4.3.10.0030.0305.25
4.3.00.0000.0235.74

preferences:
47.93 ms | 401 KiB | 5 Q