3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(filter_var('81.110.205.242', FILTER_VALIDATE_IP)); var_dump(filter_var('dead:beef::1', FILTER_VALIDATE_IP, FILTER_FLAG_IPV6));

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.2.00.0000.01418.81
7.1.100.0040.00417.45
7.1.70.0030.00517.03
7.1.60.0100.01319.70
7.1.50.0110.01116.82
7.1.00.0030.07022.57
7.0.200.0000.00816.20
7.0.140.0000.07721.92
7.0.60.0130.08019.83
7.0.50.0070.05317.83
7.0.40.0130.04319.96
7.0.30.0500.04720.12
7.0.20.0230.06020.13
7.0.10.0000.06320.13
7.0.00.0030.04720.16
5.6.280.0000.07720.99
5.6.210.0100.07720.61
5.6.200.0070.07318.18
5.6.190.0100.07720.41
5.6.180.4100.03320.77
5.6.170.0230.07020.61
5.6.160.0030.09020.45
5.6.150.0000.04318.16
5.6.140.0000.09018.07
5.6.130.0030.04718.16
5.6.120.0070.08321.03
5.6.110.0100.08321.08
5.6.100.0030.04020.95
5.6.90.0070.05020.96
5.6.80.0070.06720.43
5.6.70.3970.03720.38
5.5.350.0300.07720.40
5.5.340.0100.05717.92
5.5.330.0100.04020.34
5.5.320.0300.07320.51
5.5.310.0330.07320.13
5.5.300.0130.06017.97
5.5.290.0070.04717.95
5.5.280.0030.08020.88
5.5.270.0100.04020.86
5.5.260.0070.08320.89
5.5.250.0070.08320.61
5.5.240.0230.04020.25
5.4.450.0270.04028.28
5.4.440.0200.05028.05
5.4.430.0200.04326.89
5.4.420.0630.03726.16
5.4.410.0170.05326.14
5.4.400.0200.04026.13
5.4.390.0330.06319.07
5.4.380.0070.06018.69
5.4.370.0170.05018.57
5.4.360.0200.04718.72
5.4.350.0170.05318.74
5.4.340.0270.04018.59
5.4.320.0060.04312.45
5.4.310.0050.03812.45
5.4.300.0050.05412.45
5.4.290.0080.05112.45
5.4.280.0120.04212.35
5.4.270.0070.05012.34
5.4.260.0120.04912.34
5.4.250.0160.04712.34
5.4.240.0140.07012.35
5.4.230.0100.04612.34
5.4.220.0130.03512.34
5.4.210.0070.03512.34
5.4.200.0050.04412.34
5.4.190.0090.04912.33
5.4.180.0090.04012.34
5.4.170.0150.06312.35
5.4.160.0100.04712.34
5.4.150.0140.06112.34
5.4.140.0130.05912.02
5.4.130.0080.03912.01
5.4.120.0080.03611.96
5.4.110.0120.05411.96
5.4.100.0120.04311.97
5.4.90.0080.08311.96
5.4.80.0090.05811.96
5.4.70.0080.05511.96
5.4.60.0090.03911.96
5.4.50.0150.06311.96
5.4.40.0110.04211.95
5.4.30.0070.03811.95
5.4.20.0130.04811.94
5.4.10.0070.04811.95
5.4.00.0070.04011.43
5.3.290.0060.04012.80
5.3.280.0110.05512.71
5.3.270.0070.04412.72
5.3.260.0110.04312.71
5.3.250.0050.04912.72
5.3.240.0080.03812.72
5.3.230.0080.04112.71
5.3.220.0110.06412.68
5.3.210.0120.05812.68
5.3.200.0100.04712.68
5.3.190.0080.05112.68
5.3.180.0090.05212.67
5.3.170.0070.05612.67
5.3.160.0110.04812.68
5.3.150.0090.05212.67
5.3.140.0180.07512.66
5.3.130.0090.06512.66
5.3.120.0150.06712.66
5.3.110.0070.06212.66
5.3.100.0110.06912.12
5.3.90.0150.05112.08
5.3.80.0050.05712.07
5.3.70.0110.06412.07
5.3.60.0100.03912.07
5.3.50.0050.04212.00
5.3.40.0050.04112.00
5.3.30.0020.03911.94
5.3.20.0090.03311.72
5.3.10.0070.03511.69
5.3.00.0070.03611.67
5.2.170.0040.0339.18
5.2.160.0060.0509.18
5.2.150.0150.0519.18
5.2.140.0090.0429.17
5.2.130.0060.0409.13
5.2.120.0050.0369.13
5.2.110.0060.0429.14
5.2.100.0160.0439.14
5.2.90.0150.0389.14
5.2.80.0030.0479.13
5.2.70.0060.0449.13
5.2.60.0080.0469.09
5.2.50.0050.0489.05
5.2.40.0070.0429.03
5.2.30.0090.0429.00
5.2.20.0040.0439.00
5.2.10.0070.0398.92
5.2.00.0100.0378.77
5.1.60.0100.0298.07
5.1.50.0040.0338.06
5.1.40.0050.0378.04
5.1.30.0060.0408.39
5.1.20.0080.0328.41
5.1.10.0070.0288.14
5.1.00.0040.0328.14
5.0.50.0080.0216.62
5.0.40.0050.0246.47
5.0.30.0070.0386.29
5.0.20.0060.0226.26
5.0.10.0050.0206.23
5.0.00.0050.0306.23
4.4.90.0040.0154.78
4.4.80.0050.0144.76
4.4.70.0020.0174.76
4.4.60.0030.0164.75
4.4.50.0030.0174.77
4.4.40.0050.0264.70
4.4.30.0010.0194.76
4.4.20.0020.0174.84
4.4.10.0030.0204.84
4.4.00.0030.0284.76
4.3.110.0050.0184.67
4.3.100.0050.0174.66
4.3.90.0050.0154.63
4.3.80.0030.0294.58
4.3.70.0020.0184.63
4.3.60.0030.0164.63
4.3.50.0060.0154.63
4.3.40.0030.0334.54
4.3.30.0010.0243.28
4.3.20.0030.0243.25
4.3.10.0030.0213.22
4.3.00.0070.01326.13