3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(filter_var('bla@localhost', FILTER_VALIDATE_EMAIL)); var_dump(filter_var('root@localhost', FILTER_VALIDATE_EMAIL)); var_dump(filter_var('root@127.0.0.1', FILTER_VALIDATE_EMAIL));

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.3.10.0110.00416.83
7.3.00.0100.00616.70
7.2.130.0070.01016.92
7.2.120.0070.00716.88
7.2.110.0070.00716.93
7.2.100.0110.00317.00
7.2.90.0080.00817.15
7.2.80.0080.01216.73
7.2.70.0110.01116.89
7.2.60.0170.00317.09
7.2.50.0040.01516.86
7.2.40.0130.00616.97
7.2.30.0090.00917.08
7.2.20.0200.00316.72
7.2.10.0070.01416.89
7.2.00.0070.00818.28
7.1.250.0150.00615.70
7.1.100.0080.00318.49
7.1.70.0090.00617.37
7.1.60.0160.00919.33
7.1.50.0090.01617.22
7.1.00.0030.07722.62
7.0.200.0100.01015.37
7.0.140.0000.08022.32
7.0.100.0100.06320.26
7.0.90.0170.08720.25
7.0.80.0270.06720.20
7.0.70.0270.05020.14
7.0.60.0170.06720.10
7.0.50.0030.08320.64
7.0.40.0030.08020.36
7.0.30.0100.06720.34
7.0.20.0070.08320.40
7.0.10.0070.05320.28
7.0.00.0000.09320.46
5.6.280.0070.07321.14
5.6.250.0100.04020.58
5.6.240.0030.06020.71
5.6.230.0070.07020.61
5.6.220.0100.04720.57
5.6.210.0100.05020.63
5.6.200.0070.09021.07
5.6.190.0030.07321.07
5.6.180.0100.08020.96
5.6.170.0070.09021.04
5.6.160.0130.08321.12
5.6.150.0170.07021.11
5.6.140.0100.04721.06
5.6.130.0100.08021.07
5.6.120.0000.05721.14
5.6.110.0070.08321.10
5.6.100.0130.04021.09
5.6.90.0100.07721.10
5.6.80.0070.04020.54
5.6.70.0030.05020.35
5.6.60.0170.06720.45
5.6.50.0100.08020.51
5.6.40.0030.08720.40
5.6.30.0030.04720.54
5.6.20.0130.06320.41
5.6.10.0130.05720.54
5.6.00.0130.06720.44
5.5.380.0070.04020.43
5.5.370.0070.04020.46
5.5.360.0070.08020.49
5.5.350.0070.08320.46
5.5.340.0130.04720.74
5.5.330.0100.08020.65
5.5.320.0100.07720.90
5.5.310.0200.05720.91
5.5.300.0130.06020.93
5.5.290.0100.08320.94
5.5.280.0070.08720.90
5.5.270.0070.07720.77
5.5.260.0100.07720.84
5.5.250.0130.04020.71
5.5.240.0130.06020.25
5.5.230.0100.03720.29
5.5.220.0070.08020.12
5.5.210.0070.04720.20
5.5.200.0100.07020.24
5.5.190.0100.08320.01
5.5.180.0030.05020.16
5.5.160.0030.05020.19
5.5.150.0100.05720.28
5.5.140.0070.05020.12
5.5.130.0070.07320.28
5.5.120.0030.08320.22
5.5.110.0100.06720.00
5.5.100.0030.05020.08
5.5.90.0100.07320.11
5.5.80.0130.07319.99
5.5.70.0100.04019.95
5.5.60.0170.07019.95
5.5.50.0000.05020.16
5.5.40.0170.07020.12
5.5.30.0170.06319.97
5.5.20.0030.05020.05
5.5.10.0030.07720.06
5.5.00.0100.05320.13
5.4.450.0030.08319.50
5.4.440.0100.06719.45
5.4.430.0070.08019.41
5.4.420.0100.07319.44
5.4.410.0070.08019.17
5.4.400.0000.06319.19
5.4.390.0100.05319.02
5.4.380.0100.06719.15
5.4.370.0030.07719.08
5.4.360.0070.04719.16
5.4.350.0200.06319.11
5.4.340.0070.08319.30
5.4.320.0030.07318.89
5.4.310.0030.04718.86
5.4.300.0100.08019.00
5.4.290.0200.07019.16
5.4.280.0000.07719.10
5.4.270.0070.05019.14
5.4.260.0130.03719.17
5.4.250.0130.06719.12
5.4.240.0070.08019.12
5.4.230.0030.08018.86
5.4.220.0100.07319.00
5.4.210.0170.07719.14
5.4.200.0100.07018.83
5.4.190.0230.04018.86
5.4.180.0100.06719.11
5.4.170.0030.08019.08
5.4.160.0100.07018.98
5.4.150.0100.07019.11
5.4.140.0030.07716.15
5.4.130.0100.07316.14
5.4.120.0100.04016.38
5.4.110.0030.08016.31
5.4.100.0200.06016.27
5.4.90.0100.07316.21
5.4.80.0000.04716.23
5.4.70.0030.05716.41
5.4.60.0070.06016.36
5.4.50.0070.06316.19
5.4.40.0170.06016.51
5.4.30.0000.04716.30
5.4.20.0070.07316.35
5.4.10.0070.04016.52
5.4.00.0030.06715.84
5.3.290.0070.05714.57
5.3.280.0070.04314.50
5.3.270.0130.06014.49
5.3.260.0030.04314.64
5.3.250.0100.06314.47
5.3.240.0030.04714.60
5.3.230.0130.04314.61
5.3.220.0070.04014.57
5.3.210.0030.07314.58
5.3.200.0070.07314.62
5.3.190.0070.08014.63
5.3.180.0030.05014.61
5.3.170.0100.07314.53
5.3.160.0100.03714.61
5.3.150.0130.04714.61
5.3.140.0130.06014.43
5.3.130.0100.07014.59
5.3.120.0070.07014.59
5.3.110.0100.04714.46
5.3.100.0170.07314.09
5.3.90.0170.06314.01
5.3.80.0000.07714.00
5.3.70.0030.04013.92
5.3.60.0100.05314.02
5.3.50.0070.03713.98
5.3.40.0100.06713.86
5.3.30.0030.07013.92
5.3.20.0070.05713.68
5.3.10.0100.04013.63
5.3.00.0030.07313.62
5.2.170.0070.05711.18
5.2.160.0030.05311.21
5.2.150.0070.06011.01
5.2.140.0000.03311.18
5.2.130.0070.03311.06
5.2.120.0030.06010.89
5.2.110.0170.05011.12
5.2.100.0030.06011.15
5.2.90.0000.06711.15
5.2.80.0070.06011.01
5.2.70.0070.06010.93
5.2.60.0100.05011.03
5.2.50.0070.06011.08
5.2.40.0030.06710.85
5.2.30.0030.04010.98
5.2.20.0070.05011.01
5.2.10.0000.06010.91
5.2.00.0000.03710.76
5.1.60.0070.0479.79
5.1.50.0030.0309.98
5.1.40.0000.0539.82
5.1.30.0030.03710.26
5.1.20.0030.05710.27
5.1.10.0000.06010.11
5.1.00.0000.06010.05
5.0.50.0100.0338.57
5.0.40.0070.0178.50
5.0.30.0070.0738.50
5.0.20.0000.0238.50
5.0.10.0030.0208.50
5.0.00.0000.0538.50
4.4.90.0000.0238.50
4.4.80.0030.0308.50
4.4.70.0030.0338.50
4.4.60.0030.0338.50
4.4.50.0000.0208.50
4.4.40.0000.0478.50
4.4.30.0000.0208.50
4.4.20.0070.0238.50
4.4.10.0000.0408.50
4.4.00.0030.0478.50
4.3.110.0030.0278.50
4.3.100.0070.0278.50
4.3.90.0030.0338.50
4.3.80.0070.0338.50
4.3.70.0030.0338.50
4.3.60.0000.0208.50
4.3.50.0030.0238.50
4.3.40.0100.0308.50
4.3.30.0000.0378.50
4.3.20.0030.0238.50
4.3.10.0000.0378.50
4.3.00.0000.0238.50