3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $e="0";for($i=0;$i<2500;$i++){$e="0$e";} gethostbyname($e);

Here you find the average performance (time & memory) of each version. A greyed 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.100.0040.00718.06
7.1.70.0050.00517.29
7.1.60.0140.01119.57
7.1.50.0110.01116.96
7.1.00.0030.07722.30
7.0.200.0030.00714.89
7.0.140.0030.08722.01
7.0.60.0030.07719.97
7.0.50.0100.04717.97
7.0.40.0070.04020.08
7.0.30.0200.04020.04
7.0.20.0300.04020.06
7.0.10.0100.08320.16
7.0.00.0070.06020.16
5.6.280.0030.07721.07
5.6.210.0030.04720.47
5.6.200.0100.08318.13
5.6.190.0070.05020.27
5.6.180.0230.05320.69
5.6.170.0300.05320.52
5.6.160.0000.06320.44
5.6.150.0070.05318.18
5.6.140.0070.07318.16
5.6.130.0030.08718.12
5.6.120.0070.04721.12
5.6.110.0030.06320.96
5.6.100.0130.05320.99
5.6.90.0070.05720.95
5.6.80.0070.04020.43
5.5.350.4300.04320.36
5.5.340.0100.08017.88
5.5.330.0070.09020.29
5.5.320.0130.04720.30
5.5.310.0270.05720.32
5.5.300.0030.04018.02
5.5.290.0000.05317.91
5.5.280.0130.08320.77
5.5.270.0100.07720.73
5.5.260.0070.05020.72
5.5.250.0030.07720.61
5.5.240.0230.06720.23
5.4.450.0430.08019.41
5.4.440.0370.05019.24
5.4.430.0500.04719.24
5.4.420.0330.04719.40
5.4.410.0530.05319.33
5.4.400.0330.07319.11
5.4.390.0430.06719.10
5.4.380.0400.05719.08
5.4.370.0370.07019.06
5.4.360.0370.07319.11
5.4.350.0300.04719.16
5.4.340.0300.05019.15
5.4.320.0330.06319.30
5.4.310.0270.04019.11
5.4.300.0200.04719.11
5.4.290.0530.06018.98
5.4.280.0400.05319.08
5.4.270.0500.05718.96
5.4.260.0400.05719.12
5.4.250.0470.05019.14
5.4.240.0400.05719.30
5.4.230.0530.06319.12
5.4.220.0330.04019.26
5.4.210.0470.06019.24
5.4.200.0300.04319.18
5.4.190.0500.06319.21
5.4.180.0470.07319.18
5.4.170.0430.04719.14
5.4.160.0470.06319.04
5.4.150.0430.07019.24
5.4.140.0530.05716.61
5.4.130.0470.05016.51
5.4.120.0470.06316.51
5.4.110.0500.06016.66
5.4.100.0370.06316.52
5.4.90.0430.07716.53
5.4.80.0400.05316.63
5.4.70.0300.04016.36
5.4.60.0430.02716.69
5.4.50.0400.04316.60
5.4.40.0330.04716.61
5.4.30.0300.04016.63
5.4.20.0500.06016.45
5.4.10.0330.06016.42
5.4.00.0430.06716.04
5.3.290.0370.05014.84
5.3.280.0330.04014.53
5.3.270.0400.06314.63
5.3.260.0500.04014.71
5.3.250.0330.06714.61
5.3.240.0530.06714.86
5.3.230.0470.07014.68
5.3.220.0370.06314.60
5.3.210.0530.06014.57
5.3.200.0400.07014.74
5.3.190.0500.06014.71
5.3.180.0430.04014.59
5.3.170.0370.04314.82
5.3.160.0430.04314.60
5.3.150.0530.03714.50
5.3.140.0430.06314.73
5.3.130.0470.06714.55
5.3.120.0470.05014.49
5.3.110.0500.05714.66
5.3.100.0600.05313.96
5.3.90.0330.04013.95
5.3.80.0530.05713.97
5.3.70.0470.06713.97
5.3.60.0400.03314.05
5.3.50.0470.05314.06
5.3.40.0470.06314.09
5.3.30.0330.04313.92
5.3.20.0330.03313.65
5.3.10.0370.04313.66
5.3.00.0330.03713.72
5.2.170.0400.03712.20
5.2.160.0400.04012.20
5.2.150.0330.03712.20
5.2.140.0300.03012.20
5.2.130.0330.04712.20
5.2.120.0370.05712.20
5.2.110.0400.05312.20
5.2.100.0400.04712.20
5.2.90.0330.05712.20
5.2.80.0370.03012.20
5.2.70.0400.05712.20
5.2.60.0270.04312.20
5.2.50.0400.03712.20
5.2.40.0300.05312.20
5.2.30.0370.05012.20
5.2.20.0300.05312.20
5.2.10.0330.04012.20
5.2.00.0300.05712.20
5.1.60.0400.02712.20
5.1.50.0300.03312.20
5.1.40.0200.03712.20
5.1.30.0230.02712.20
5.1.20.0270.03012.20
5.1.10.0300.03712.20
5.1.00.0230.03712.20
5.0.50.0200.04012.20
5.0.40.0130.03312.20
5.0.30.0170.04012.20
5.0.20.0130.04312.20
5.0.10.0170.04312.20
5.0.00.0130.04712.20
4.4.90.0100.01712.20
4.4.80.0130.02012.20
4.4.70.0130.02312.20
4.4.60.0130.03712.20
4.4.50.0170.02712.20
4.4.40.0170.05012.20
4.4.30.0170.02712.20
4.4.20.0130.03712.20
4.4.10.0130.02712.20
4.4.00.0100.03312.20
4.3.110.0200.02712.20
4.3.100.0070.02712.20
4.3.90.0130.03312.20
4.3.80.0170.05312.20
4.3.70.0130.02712.20
4.3.60.0130.02712.20
4.3.50.0200.03312.20
4.3.40.0170.04712.20
4.3.30.0030.02312.20
4.3.20.0100.01712.20
4.3.10.0100.01312.20
4.3.00.0100.01712.20