3v4l.org

run code in 300+ PHP versions simultaneously
<?php $regex = "(toto.com|tata.fr)"; $email = "toto@totox.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.0110.00416.50
8.3.50.0140.00617.52
8.3.40.0040.01618.99
8.3.30.0090.01218.71
8.3.20.0080.00018.81
8.3.10.0030.00620.64
8.3.00.0090.00317.63
8.2.180.0110.01116.75
8.2.170.0070.01022.96
8.2.160.0070.00721.36
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0030.00626.16
8.2.120.0000.00817.63
8.2.110.0090.00021.31
8.2.100.0130.00317.87
8.2.90.0050.00519.45
8.2.80.0000.00719.32
8.2.70.0080.00017.75
8.2.60.0040.00717.78
8.2.50.0050.00318.07
8.2.40.0050.00218.34
8.2.30.0040.00418.09
8.2.20.0040.00417.76
8.2.10.0040.00417.86
8.2.00.0040.00417.77
8.1.280.0100.01025.92
8.1.270.0060.00324.66
8.1.260.0030.00626.35
8.1.250.0040.00428.09
8.1.240.0050.00522.51
8.1.230.0060.00620.92
8.1.220.0040.00417.79
8.1.210.0080.00018.83
8.1.200.0060.00317.35
8.1.190.0000.00917.53
8.1.180.0050.00518.10
8.1.170.0060.00320.62
8.1.160.0040.00418.86
8.1.150.0040.00418.66
8.1.140.0080.00317.54
8.1.130.0030.00317.85
8.1.120.0080.00017.60
8.1.110.0070.00017.50
8.1.100.0000.00717.58
8.1.90.0070.00017.43
8.1.80.0000.00717.45
8.1.70.0070.00017.50
8.1.60.0050.00517.63
8.1.50.0040.00417.47
8.1.40.0040.00417.61
8.1.30.0080.00017.57
8.1.20.0040.00417.69
8.1.10.0000.00817.71
8.1.00.0000.00817.57
8.0.300.0050.00219.81
8.0.290.0000.00716.75
8.0.280.0070.00018.46
8.0.270.0050.00217.29
8.0.260.0050.00218.35
8.0.250.0040.00417.07
8.0.240.0040.00417.01
8.0.230.0000.00716.95
8.0.220.0060.00316.96
8.0.210.0000.00816.91
8.0.200.0040.00417.04
8.0.190.0040.00417.09
8.0.180.0030.00516.89
8.0.170.0080.00017.02
8.0.160.0040.00416.89
8.0.150.0000.00816.90
8.0.140.0030.00716.81
8.0.130.0030.00313.48
8.0.120.0050.00216.76
8.0.110.0040.00416.96
8.0.100.0040.00416.82
8.0.90.0030.00516.92
8.0.80.0140.00716.98
8.0.70.0040.00417.04
8.0.60.0030.00516.82
8.0.50.0050.00317.04
8.0.30.0140.00517.16
8.0.20.0090.01017.29
8.0.10.0030.00617.09
8.0.00.0110.00916.88
7.4.330.0000.00513.13
7.4.320.0090.00016.61
7.4.300.0030.00316.55
7.4.290.0050.00216.57
7.4.280.0050.00216.76
7.4.270.0000.00616.69
7.4.260.0000.00513.31
7.4.250.0030.00616.61
7.4.240.0030.00516.59
7.4.230.0040.00416.55
7.4.220.0150.00616.73
7.4.210.0060.00916.74
7.4.200.0000.00716.78
7.4.190.0050.00216.52
7.4.160.0060.01016.55
7.4.150.0100.00716.59
7.4.140.0150.01016.63
7.4.130.0070.00916.68
7.4.120.0130.00716.74
7.4.110.0120.00916.64
7.4.100.0110.00516.61
7.4.90.0130.00616.58
7.4.80.0100.00919.39
7.4.70.0100.01016.64
7.4.60.0040.01416.54
7.4.50.0040.00416.68
7.4.40.0060.00516.65
7.4.30.0110.00516.63
7.4.00.0060.00815.15
7.3.330.0060.00013.23
7.3.320.0060.00013.11
7.3.310.0000.00716.29
7.3.300.0000.00616.34
7.3.290.0070.00716.29
7.3.280.0070.00816.35
7.3.270.0140.00316.47
7.3.260.0070.01116.33
7.3.250.0130.00516.64
7.3.240.0080.00816.71
7.3.230.0140.00316.39
7.3.210.0340.02116.54
7.3.200.0070.01016.34
7.3.190.0030.01416.54
7.3.180.0120.00416.37
7.3.170.0090.00616.27
7.3.160.0030.01916.57
7.3.120.0020.01316.03
7.3.110.0080.00515.79
7.3.100.0090.00715.96
7.3.90.0030.01015.75
7.3.80.0050.00915.97
7.3.70.0060.00615.78
7.3.60.0090.00615.85
7.3.50.0050.00915.84
7.3.40.0050.01015.85
7.3.30.0050.00615.82
7.3.20.0050.01116.90
7.3.10.0060.00616.82
7.3.00.0100.00416.65
7.2.330.0150.00316.79
7.2.320.0000.01716.77
7.2.310.0150.00916.84
7.2.300.0110.00716.69
7.2.290.0060.01116.67
7.2.250.0100.01015.09
7.2.240.0070.00816.05
7.2.230.0060.00916.08
7.2.220.0030.00816.06
7.2.210.0060.01016.10
7.2.200.0050.00815.85
7.2.190.0070.01016.03
7.2.180.0020.01315.89
7.2.170.0070.00615.96
7.2.160.0070.01016.90
7.2.150.0090.00616.90
7.2.140.0080.00617.12
7.2.130.0060.00916.90
7.2.120.0000.01316.90
7.2.110.0030.01016.90
7.2.100.0030.01016.90
7.2.90.0000.01216.90
7.2.80.0060.00916.90
7.2.70.0030.01416.93
7.2.60.0090.00617.12
7.2.50.0090.00617.15
7.2.40.0030.01317.01
7.2.30.0100.00717.00
7.2.20.0040.01517.00
7.2.10.0040.01216.90
7.2.00.0070.01018.39
7.1.330.0050.00816.52
7.1.320.0060.00616.36
7.1.310.0060.00816.47
7.1.300.0070.00816.38
7.1.290.0050.01016.43
7.1.280.0030.01016.32
7.1.270.0050.00716.44
7.1.260.0050.00716.43
7.1.250.0100.00316.90
7.1.200.0000.01516.11
7.1.100.0060.00318.23
7.1.70.0000.00817.00
7.1.60.0140.01119.40
7.1.50.0030.01717.16
7.1.00.0070.03022.49
7.0.200.0000.00816.82
7.0.140.0170.06022.07
7.0.120.0030.07322.15
7.0.60.0030.04020.06
7.0.50.0070.08717.86
7.0.40.0130.07720.43
7.0.30.0470.07020.32
7.0.20.0200.08720.22
7.0.10.0100.08020.14
7.0.00.0070.07720.14
5.6.210.0070.07020.50
5.6.200.0030.08718.11
5.6.190.0100.08320.41
5.6.180.3200.04020.61
5.6.170.0270.05020.62
5.6.160.0030.07020.38
5.6.150.0100.08018.05
5.6.140.0070.07018.11
5.6.130.0100.07718.11
5.6.120.0100.03720.89
5.6.110.0130.08320.95
5.6.100.0030.07021.01
5.6.90.0100.06320.97
5.6.80.0100.07720.38
5.6.70.4670.03720.42
5.5.350.0070.08320.31
5.5.340.0130.07017.92
5.5.330.0070.08720.09
5.5.320.0370.04020.20
5.5.310.0070.05020.50
5.5.300.0100.06717.91
5.5.290.0100.07717.98
5.5.280.0070.06020.87
5.5.270.0100.07720.75
5.5.260.0100.07720.72
5.5.250.0100.05020.65
5.5.240.0270.07320.25
5.4.450.0100.08319.14
5.4.440.0070.07719.46
5.4.430.0100.04019.50
5.4.420.0070.08319.40
5.4.410.0100.07319.20
5.4.400.0100.05319.14
5.4.390.0030.08319.12
5.4.380.0130.07319.20
5.4.370.0170.06719.08
5.4.360.0200.03019.02
5.4.350.0070.07019.14
5.4.340.0030.04019.18
5.4.320.0030.05019.18
5.4.310.0070.08719.09
5.4.300.0130.03719.00
5.4.290.0130.06319.04
5.4.280.0100.03318.79
5.4.270.0030.04018.91
5.4.260.0100.07718.78
5.4.250.0170.06719.07
5.4.240.0130.07019.17
5.4.230.0100.05319.07
5.4.220.0070.04019.17
5.4.210.0070.06719.16
5.4.200.0100.04019.07
5.4.190.0000.05319.17
5.4.180.0000.04719.16
5.4.170.0030.04019.16
5.4.160.0070.03719.12
5.4.150.0070.06019.12
5.4.140.0100.04016.18
5.4.130.0100.06316.24
5.4.120.0070.07016.19
5.4.110.0070.06316.29
5.4.100.0000.04016.29
5.4.90.0070.03316.40
5.4.80.0000.04016.22
5.4.70.0070.07016.18
5.4.60.0130.03716.38
5.4.50.0030.07016.38
5.4.40.0070.05716.31
5.4.30.0100.07016.33
5.4.20.0030.04316.20
5.4.10.0070.03316.38
5.4.00.0100.06315.64
5.3.290.0100.04714.61
5.3.280.0070.04314.53
5.3.270.0100.04714.62
5.3.260.0070.04714.56
5.3.250.0030.07714.52
5.3.240.0030.05714.39
5.3.230.0070.06014.53
5.3.220.0100.07314.54
5.3.210.0030.05014.54
5.3.200.0070.07014.52
5.3.190.0200.05014.51
5.3.180.0100.05314.46
5.3.170.0030.04714.51
5.3.160.0100.07014.38
5.3.150.0030.08014.48
5.3.140.0070.07314.52
5.3.130.0100.04714.46
5.3.120.0170.04314.46
5.3.110.0070.07714.56
5.3.100.0100.05013.91
5.3.90.0100.04013.92
5.3.80.0170.05013.83
5.3.70.0100.04313.83
5.3.60.0070.06713.94
5.3.50.0070.05313.89
5.3.40.0130.06313.91
5.3.30.0030.04013.84
5.3.20.0030.04013.70
5.3.10.0100.06313.49
5.3.00.0070.05313.57
5.2.170.0000.07311.14
5.2.160.0070.04311.09
5.2.150.0000.03311.00
5.2.140.0030.06011.13
5.2.130.0100.04311.03
5.2.120.0030.03310.99
5.2.110.0130.03711.17
5.2.100.0070.06311.02
5.2.90.0070.04011.04
5.2.80.0030.05710.98
5.2.70.0000.05010.99
5.2.60.0030.04711.01
5.2.50.0070.06010.95
5.2.40.0170.05010.96
5.2.30.0000.03311.13
5.2.20.0070.05710.90
5.2.10.0030.02710.86
5.2.00.0100.04710.71
5.1.60.0030.05310.00
5.1.50.0100.0439.96
5.1.40.0070.04310.12
5.1.30.0070.02310.39
5.1.20.0030.05710.41
5.1.10.0070.02310.16
5.1.00.0030.0409.96
5.0.50.0100.0408.93
5.0.40.0000.0308.93
5.0.30.0000.0338.93
5.0.20.0030.0208.93
5.0.10.0000.0278.93
5.0.00.0030.0338.93
4.4.90.0030.0338.93
4.4.80.0000.0208.93
4.4.70.0030.0238.93
4.4.60.0100.0138.93
4.4.50.0000.0178.93
4.4.40.0030.0378.93
4.4.30.0000.0378.93
4.4.20.0000.0178.93
4.4.10.0000.0238.93
4.4.00.0000.0278.93
4.3.110.0000.0238.93
4.3.100.0100.0238.93
4.3.90.0000.0178.93
4.3.80.0030.0238.93
4.3.70.0030.0278.93
4.3.60.0000.0308.93
4.3.50.0000.0208.93
4.3.40.0030.0478.93
4.3.30.0000.0208.93
4.3.20.0000.0238.93
4.3.10.0000.0338.93
4.3.00.0030.0278.93

preferences:
38.12 ms | 401 KiB | 5 Q