3v4l.org

run code in 300+ PHP versions simultaneously
<?php $regex = "(toto.com|tata.fr)"; $email = "toto@toto.com"; $result = preg_match($regex,$email); echo $result;

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.0070.00718.56
8.3.50.0170.00322.06
8.3.40.0150.00018.93
8.3.30.0180.00319.07
8.3.20.0000.00720.20
8.3.10.0050.00322.10
8.3.00.0000.00822.51
8.2.180.0110.00416.50
8.2.170.0100.01022.96
8.2.160.0030.01121.07
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0060.00319.61
8.2.110.0030.00622.23
8.2.100.0000.01118.03
8.2.90.0050.00319.26
8.2.80.0000.00817.97
8.2.70.0090.00017.63
8.2.60.0060.00318.04
8.2.50.0030.00618.07
8.2.40.0040.00418.16
8.2.30.0000.00718.16
8.2.20.0050.00317.81
8.2.10.0070.00017.82
8.2.00.0030.00617.89
8.1.280.0040.01125.92
8.1.270.0050.00324.00
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0030.00624.02
8.1.230.0060.00619.15
8.1.220.0040.00417.76
8.1.210.0000.00818.77
8.1.200.0090.00017.35
8.1.190.0000.00817.38
8.1.180.0060.00318.10
8.1.170.0080.00018.62
8.1.160.0070.00022.00
8.1.150.0050.00218.65
8.1.140.0040.00417.46
8.1.130.0030.00317.84
8.1.120.0000.00717.54
8.1.110.0070.00017.54
8.1.100.0000.00717.45
8.1.90.0070.00017.61
8.1.80.0090.00017.55
8.1.70.0000.00717.43
8.1.60.0040.00417.64
8.1.50.0020.00517.59
8.1.40.0020.00517.63
8.1.30.0050.00317.77
8.1.20.0030.00617.57
8.1.10.0040.00417.68
8.1.00.0030.00517.43
8.0.300.0000.00818.77
8.0.290.0000.00717.04
8.0.280.0000.00718.38
8.0.270.0030.00317.18
8.0.260.0090.00016.87
8.0.250.0070.00017.08
8.0.240.0060.00317.05
8.0.230.0030.00317.02
8.0.220.0000.00716.97
8.0.210.0070.00016.92
8.0.200.0000.00616.99
8.0.190.0000.00717.05
8.0.180.0050.00317.02
8.0.170.0050.00316.84
8.0.160.0040.00417.04
8.0.150.0000.00816.98
8.0.140.0070.00016.82
8.0.130.0030.00313.43
8.0.120.0000.00816.91
8.0.110.0000.00716.87
8.0.100.0040.00416.98
8.0.90.0040.00417.01
8.0.80.0110.00617.04
8.0.70.0040.00416.98
8.0.60.0080.00016.96
8.0.50.0040.00417.02
8.0.30.0080.01117.35
8.0.20.0080.01217.40
8.0.10.0040.00417.05
8.0.00.0130.00516.94
7.4.330.0050.00015.10
7.4.320.0030.00316.75
7.4.300.0030.00316.61
7.4.290.0000.00716.59
7.4.280.0030.00316.75
7.4.270.0000.00716.76
7.4.260.0070.00016.71
7.4.250.0040.00416.72
7.4.240.0040.00416.68
7.4.230.0000.00716.55
7.4.220.0110.00616.76
7.4.210.0030.01416.72
7.4.200.0030.00316.78
7.4.190.0050.00216.91
7.4.160.0150.00316.60
7.4.150.0060.01317.40
7.4.140.0110.01117.86
7.4.130.0080.00816.58
7.4.120.0120.00516.58
7.4.110.0140.00316.67
7.4.100.0070.01016.61
7.4.90.0120.00616.50
7.4.80.0140.00716.92
7.4.70.0030.01616.50
7.4.60.0100.00716.57
7.4.50.0020.00216.61
7.4.40.0070.01022.77
7.4.30.0000.01616.70
7.4.00.0030.01015.14
7.3.330.0020.00313.18
7.3.320.0060.00013.27
7.3.310.0020.00516.18
7.3.300.0000.00716.34
7.3.290.0100.01016.32
7.3.280.0110.00516.36
7.3.270.0090.00917.40
7.3.260.0060.01616.35
7.3.250.0100.00816.31
7.3.240.0090.00916.62
7.3.230.0090.00716.39
7.3.210.0110.01216.60
7.3.200.0090.00919.39
7.3.190.0030.01616.46
7.3.180.0070.01016.53
7.3.170.0080.00816.49
7.3.160.0110.00716.35
7.3.120.0130.00315.03
7.2.330.0060.01016.88
7.2.320.0060.01116.79
7.2.310.0060.01016.54
7.2.300.0120.00416.80
7.2.290.0060.01016.69
7.1.70.0030.00917.33
7.1.60.0030.02119.82
7.1.50.0160.00617.07
7.1.00.0100.06722.36
7.0.200.0120.00017.01
7.0.140.0000.07721.95
7.0.60.0300.06020.05
7.0.50.0000.04317.84
7.0.40.0070.08320.00
7.0.30.0330.05320.19
7.0.20.0170.04320.01
7.0.10.0130.04720.05
7.0.00.0030.08720.29
5.6.280.0000.07721.14
5.6.210.0100.07720.69
5.6.200.0070.07018.19
5.6.190.0070.06320.77
5.6.180.3170.03720.35
5.6.170.0200.04320.33
5.6.160.0130.05320.38
5.6.150.0070.06318.23
5.6.140.0070.04018.18
5.6.130.0070.05318.08
5.6.120.0100.07020.99
5.6.110.0130.07721.03
5.6.100.0070.07321.18
5.6.90.0070.07321.02
5.6.80.0100.03320.48
5.6.70.4370.04020.27
5.5.350.0030.07720.37
5.5.340.0070.03717.97
5.5.330.0030.07020.23
5.5.320.0270.04320.51
5.5.310.0230.08320.16
5.5.300.0030.05717.98
5.5.290.0070.08017.91
5.5.280.0030.05720.64
5.5.270.0170.06720.95
5.5.260.0130.08020.86
5.5.250.0100.07720.48
5.5.240.0100.06020.03
5.4.450.2200.04319.49
5.4.440.2330.05019.10
5.4.430.2630.04319.54
5.4.420.2230.04019.41
5.4.410.2200.03719.36
5.4.400.1730.03719.08
5.4.390.0130.03019.05
5.4.380.0100.04319.16
5.4.370.0000.05319.09
5.4.360.1600.05019.14
5.4.350.2330.04719.10
5.4.340.2270.04319.25
5.4.320.2370.03318.78
5.4.310.2370.04019.24
5.4.300.2300.04019.13
5.4.290.1970.04319.25
5.4.280.2300.03719.23
5.4.270.2270.04319.23
5.4.260.2330.04719.14
5.4.250.2170.04719.07
5.4.240.2270.03719.12
5.4.230.2130.03019.13
5.4.220.2370.04019.13
5.4.210.2300.03719.08
5.4.200.2300.03719.17
5.4.190.2300.03318.91
5.4.180.2430.03318.92
5.4.170.2300.04019.04
5.4.160.2330.04719.02
5.4.150.2270.04718.91
5.4.140.2370.03316.25
5.4.130.2030.03316.14
5.4.120.2330.03316.25
5.4.110.2070.03716.41
5.4.100.2370.04316.48
5.4.90.2270.04016.43
5.4.80.2030.04016.32
5.4.70.2370.04016.38
5.4.60.2300.03716.36
5.4.50.2100.03316.36
5.4.40.2170.03716.41
5.4.30.2330.04016.16
5.4.20.2400.03716.46
5.4.10.2330.03716.25
5.4.00.2100.03715.58
5.3.290.2330.04014.50
5.3.280.2070.03714.53
5.3.270.2200.03714.50
5.3.260.2200.03014.54
5.3.250.2530.04014.58
5.3.240.2200.03714.46
5.3.230.2170.03314.64
5.3.220.2170.03314.47
5.3.210.2200.04714.50
5.3.200.2300.04014.42
5.3.190.2130.03714.54
5.3.180.2500.04014.42
5.3.170.2330.04014.40
5.3.160.2170.03014.41
5.3.150.2170.04014.51
5.3.140.2270.03714.64
5.3.130.2470.04014.51
5.3.120.2470.04014.37
5.3.110.2530.03314.38
5.3.100.1970.03713.88
5.3.90.2330.03713.97
5.3.80.1970.05313.96
5.3.70.1970.03714.03
5.3.60.2270.04013.78
5.3.50.2400.02313.81
5.3.40.2100.04013.95
5.3.30.2170.03713.89
5.3.20.2000.04313.59
5.3.10.2070.04013.43
5.3.00.2330.03313.54
5.2.170.1970.03310.98
5.2.160.1970.03011.05
5.2.150.1930.03711.30
5.2.140.1800.02710.99
5.2.130.1930.03310.94
5.2.120.1830.03011.11
5.2.110.1800.02311.00
5.2.100.2000.03011.04
5.2.90.1900.03310.94
5.2.80.1970.02710.92
5.2.70.1970.03310.93
5.2.60.1930.03311.09
5.2.50.1970.03710.90
5.2.40.1530.03010.93
5.2.30.1530.02310.83
5.2.20.1400.02311.12
5.2.10.1370.03010.90
5.2.00.1500.03010.93
5.1.60.1430.0209.96
5.1.50.1300.0279.97
5.1.40.1370.0239.95
5.1.30.1600.03010.25
5.1.20.0100.02710.47
5.1.10.0000.02710.16
5.1.00.0030.02310.29
5.0.50.0030.0238.69
5.0.40.0730.0278.58
5.0.30.0770.0508.26
5.0.20.0700.0308.28
5.0.10.0800.0308.05
5.0.00.0770.0478.15
4.4.90.0770.0236.90
4.4.80.0700.0206.90
4.4.70.0830.0206.90
4.4.60.0730.0206.90
4.4.50.0930.0176.90
4.4.40.0630.0276.90
4.4.30.0670.0176.90
4.4.20.0770.0206.90
4.4.10.0670.0176.90
4.4.00.0870.0306.90
4.3.110.0700.0176.90
4.3.100.0830.0206.90
4.3.90.0670.0136.90
4.3.80.0770.0276.90
4.3.70.0700.0176.90
4.3.60.0730.0206.90
4.3.50.0800.0236.90
4.3.40.0730.0276.90
4.3.30.0430.0236.90
4.3.20.0300.0176.90
4.3.10.0300.0176.90
4.3.00.0270.0176.90

preferences:
42.59 ms | 401 KiB | 5 Q