3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $count = 3; for($i = 0; $i< 10 ; $i++){ echo "i: ".($i % $count)."<br>"; }

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.0rc40.0220.00798.97
7.2.00.0110.00019.40
7.1.100.0030.01017.95
7.1.70.0000.00717.08
7.1.60.0120.00919.46
7.1.50.0030.02117.03
7.1.00.0030.07722.51
7.0.200.0100.00016.73
7.0.140.0000.08021.99
7.0.60.0000.04319.97
7.0.50.0100.06717.89
7.0.40.0200.07720.30
7.0.30.0270.07320.20
7.0.20.0170.06720.13
7.0.10.0070.04020.21
7.0.00.0000.04720.17
5.6.280.0130.06321.09
5.6.210.0070.08720.55
5.6.200.0000.05318.24
5.6.190.0130.07320.56
5.6.180.0070.04720.35
5.6.170.0370.07020.45
5.6.160.0130.07720.45
5.6.150.0130.07718.15
5.6.140.0100.05718.14
5.6.130.0130.08018.11
5.6.120.0070.05321.11
5.6.110.0130.03321.03
5.6.100.0030.08321.00
5.6.90.0170.05721.02
5.6.80.0130.05320.39
5.5.350.0030.08320.29
5.5.340.0100.03717.88
5.5.330.0070.04320.21
5.5.320.0370.05720.34
5.5.310.0200.04020.18
5.5.300.0100.05317.98
5.5.290.0000.04317.96
5.5.280.0070.08020.73
5.5.270.0100.08020.75
5.5.260.0030.04020.85
5.5.250.0130.07020.61
5.5.240.0030.08020.15
5.4.450.0270.07719.40
5.4.440.0170.04019.57
5.4.430.0200.08019.25
5.4.420.0270.04719.45
5.4.410.0200.04019.32
5.4.400.0230.05319.14
5.4.390.0270.03318.77
5.4.380.0370.06319.25
5.4.370.0300.04019.09
5.4.360.0200.04719.08
5.4.350.0270.03019.11
5.4.340.0170.04318.92
5.4.320.0370.05019.16
5.4.310.0230.06019.16
5.4.300.0200.05019.16
5.4.290.0300.07018.80
5.4.280.0070.05412.32
5.4.270.0140.04712.32
5.4.260.0070.05612.32
5.4.250.0110.07912.32
5.4.240.0100.05012.32
5.4.230.0110.05112.31
5.4.220.0100.04912.31
5.4.210.0110.03812.31
5.4.200.0090.05412.31
5.4.190.0140.03712.31
5.4.180.0120.04912.31
5.4.170.0120.04512.32
5.4.160.0120.04612.32
5.4.150.0110.04812.31
5.4.140.0090.05211.99
5.4.130.0110.05011.98
5.4.120.0120.04711.94
5.4.110.0090.07711.93
5.4.100.0130.07311.94
5.4.90.0140.05611.94
5.4.80.0140.05711.94
5.4.70.0150.05711.93
5.4.60.0140.04611.93
5.4.50.0140.04711.93
5.4.40.0120.04411.92
5.4.30.0120.04911.92
5.4.20.0080.04511.92
5.4.10.0080.04311.92
5.4.00.0220.08211.41
5.3.290.4000.03714.51
5.3.280.0080.06712.71
5.3.270.0090.06312.73
5.3.260.0100.07812.72
5.3.250.0130.05712.72
5.3.240.0140.05112.72
5.3.230.0120.05612.71
5.3.220.0210.08212.68
5.3.210.0090.05912.68
5.3.200.0060.05812.68
5.3.190.0110.05812.68
5.3.180.0180.05912.68
5.3.170.0110.05812.67
5.3.160.0100.08112.67
5.3.150.0080.06312.67
5.3.140.0260.07512.66
5.3.130.0080.07712.66
5.3.120.0190.10812.66
5.3.110.0120.06712.66
5.3.100.0100.06112.12
5.3.90.0120.06312.08
5.3.80.0100.05712.07
5.3.70.0160.07612.07
5.3.60.0140.07412.06
5.3.50.0160.07012.00
5.3.40.0150.05712.00
5.3.30.0190.11011.94
5.3.20.0210.06811.70
5.3.10.0180.10111.66
5.3.00.0100.11011.66
5.2.170.0050.0749.15
5.2.160.0090.0539.15
5.2.150.0090.0559.15
5.2.140.0130.0639.15
5.2.130.0180.0639.11
5.2.120.0110.0379.11
5.2.110.0100.0359.12
5.2.100.0080.0389.11
5.2.90.0100.0399.11
5.2.80.0090.0419.11
5.2.70.0060.0429.11
5.2.60.0080.0359.06
5.2.50.0100.0389.03
5.2.40.0090.0399.00
5.2.30.0080.0418.98
5.2.20.0070.0388.97
5.2.10.0090.0368.91
5.2.00.0090.0388.77
5.1.60.0060.0308.05
5.1.50.0060.0358.05
5.1.40.0060.0338.04
5.1.30.0100.0358.38
5.1.20.0080.0348.41
5.1.10.0040.0368.13
5.1.00.0060.0368.13
5.0.50.0080.0256.61
5.0.40.0030.0226.47
5.0.30.0040.0396.28
5.0.20.0060.0256.25
5.0.10.0070.0286.23
5.0.00.0030.0426.21
4.4.90.0050.0244.78
4.4.80.0080.0234.76
4.4.70.0040.0264.75
4.4.60.0020.0304.76
4.4.50.0080.0254.77
4.4.40.0040.0294.71
4.4.30.0090.0194.76
4.4.20.0030.0224.84
4.4.10.0040.0224.85
4.4.00.0040.0334.76
4.3.110.0030.0174.66
4.3.100.0030.0174.67
4.3.90.0040.0164.63
4.3.80.0060.0264.58
4.3.70.0080.0184.63
4.3.60.0040.0214.63
4.3.50.0040.0214.63
4.3.40.0060.0334.53
4.3.30.0030.0223.28
4.3.20.0050.0263.26
4.3.10.0040.0213.23
4.3.00.0070.01313.91