3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function myTest() { static $x=0; echo $x; $x++; } myTest(); echo "<br>"; myTest(); echo "<br>"; myTest(); echo "<br>"; myTest(); echo "<br>"; myTest(); ?>

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.0030.00619.48
7.1.100.0040.00817.78
7.1.70.0030.01316.94
7.1.60.0040.02219.46
7.1.50.0040.01116.50
7.1.00.0000.07722.36
7.0.200.0070.00314.95
7.0.140.0000.07722.01
7.0.60.0070.05319.95
7.0.50.0100.08317.95
7.0.40.0130.08020.51
7.0.30.0370.06320.10
7.0.20.0270.05020.16
7.0.10.0100.08320.15
7.0.00.0070.05720.12
5.6.280.0000.07321.15
5.6.210.0100.06720.47
5.6.200.0100.07718.18
5.6.190.0000.08720.46
5.6.180.0130.04320.57
5.6.170.0300.08020.56
5.6.160.0100.06320.57
5.6.150.0000.04718.15
5.6.140.0030.03718.20
5.6.130.0070.06718.28
5.6.120.0070.08320.99
5.6.110.0030.04321.02
5.6.100.0070.07321.11
5.6.90.0130.05721.09
5.6.80.0000.04720.33
5.6.70.3370.03020.42
5.5.350.0230.07720.30
5.5.340.0030.04317.95
5.5.330.0100.03720.41
5.5.320.0400.06320.51
5.5.310.0300.07720.28
5.5.300.0030.05717.98
5.5.290.0070.03717.98
5.5.280.0030.07720.80
5.5.270.0100.06320.75
5.5.260.0000.08720.80
5.5.250.0130.06720.61
5.5.240.0170.07320.07
5.4.450.0800.05719.57
5.4.440.1100.06319.57
5.4.430.0730.05719.18
5.4.420.1000.06019.46
5.4.410.0330.05719.32
5.4.400.0000.06018.86
5.4.390.0670.06019.14
5.4.380.0300.05018.79
5.4.370.0400.04718.45
5.4.360.0330.04018.85
5.4.350.0470.05018.62
5.4.340.0270.05318.52
5.4.320.0100.03812.51
5.4.310.0050.04012.50
5.4.300.0130.03412.50
5.4.290.0110.04312.48
5.4.280.0150.04612.38
5.4.270.0050.05112.39
5.4.260.0100.04912.39
5.4.250.0090.05212.38
5.4.240.0100.04012.38
5.4.230.0190.05912.38
5.4.220.0070.05112.38
5.4.210.0080.04612.38
5.4.200.0080.03912.38
5.4.190.0080.04112.37
5.4.180.0030.03912.37
5.4.170.0060.03612.38
5.4.160.0050.04112.38
5.4.150.0070.04312.37
5.4.140.0140.06312.06
5.4.130.0070.04612.05
5.4.120.0050.04112.00
5.4.110.0040.03912.00
5.4.100.0060.03912.00
5.4.90.0070.03811.99
5.4.80.0170.04812.00
5.4.70.0080.03911.99
5.4.60.0080.03711.99
5.4.50.0050.03911.99
5.4.40.0070.04411.98
5.4.30.0110.05011.98
5.4.20.0070.03911.97
5.4.10.0140.05911.98
5.4.00.0090.05211.47
5.3.290.0080.04312.80
5.3.280.0110.05312.71
5.3.270.0120.05812.72
5.3.260.0090.05812.72
5.3.250.0110.05712.72
5.3.240.0120.05212.72
5.3.230.0110.05012.71
5.3.220.0040.05112.68
5.3.210.0080.04112.68
5.3.200.0050.04212.68
5.3.190.0070.04012.68
5.3.180.0070.03912.67
5.3.170.0100.04112.67
5.3.160.0100.05512.68
5.3.150.0110.06212.67
5.3.140.0080.05412.66
5.3.130.0070.05712.66
5.3.120.0080.05612.66
5.3.110.0080.05612.66
5.3.100.0070.03712.12
5.3.90.0080.04612.10
5.3.80.0080.04012.09
5.3.70.0080.05212.09
5.3.60.0090.05212.07
5.3.50.0120.04612.02
5.3.40.0070.07812.02
5.3.30.0040.05711.97
5.3.20.0070.05111.76
5.3.10.0110.04911.73
5.3.00.0100.06011.71
5.2.170.0060.0479.21
5.2.160.0080.0439.21
5.2.150.0090.0539.21
5.2.140.0040.0339.21
5.2.130.0080.0289.17
5.2.120.0060.0299.17
5.2.110.0020.0379.18
5.2.100.0060.0379.17
5.2.90.0050.0309.17
5.2.80.0080.0279.16
5.2.70.0060.0399.16
5.2.60.0080.0429.13
5.2.50.0070.0439.09
5.2.40.0080.0309.07
5.2.30.0090.0319.04
5.2.20.0040.0329.03
5.2.10.0110.0338.94
5.2.00.0090.0428.80
5.1.60.0030.0398.09
5.1.50.0040.0378.08
5.1.40.0050.0368.05
5.1.30.0050.0398.41
5.1.20.0070.0438.43
5.1.10.0080.0398.15
5.1.00.0090.0438.16
5.0.50.0040.0216.63
5.0.40.0050.0196.50
5.0.30.0000.0376.30
5.0.20.0050.0196.27
5.0.10.0000.0276.25
5.0.00.0060.0366.25
4.4.90.0020.0174.78
4.4.80.0050.0214.75
4.4.70.0030.0264.75
4.4.60.0070.0204.75
4.4.50.0030.0234.77
4.4.40.0050.0284.71
4.4.30.0020.0174.76
4.4.20.0050.0224.84
4.4.10.0020.0244.85
4.4.00.0040.0334.76
4.3.110.0050.0234.67
4.3.100.0020.0244.66
4.3.90.0030.0224.63
4.3.80.0040.0274.59
4.3.70.0060.0194.63
4.3.60.0050.0314.63
4.3.50.0060.0164.63
4.3.40.0040.0244.54
4.3.30.0020.0193.30
4.3.20.0050.0213.27
4.3.10.0040.0193.24
4.3.00.0200.03710.54