3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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).
Note: hhvm uses a JIT which only kicks in after a few runs. Since we run scripts only once, hhvm always runs slower.

VersionSystem time (s)User time (s)Memory (MiB)
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