3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo 'credit/'.sprintf('%03d', substr(2, -3)).'/2/';

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.0100.00719.47
7.1.100.0000.00918.22
7.1.70.0040.00416.93
7.1.60.0140.01119.70
7.1.50.0030.01716.51
7.1.00.0000.08022.57
7.0.200.0060.00616.68
7.0.140.0000.07021.96
7.0.60.0100.04319.93
7.0.50.0170.04317.84
7.0.40.0000.08719.96
7.0.30.0230.07020.17
7.0.20.0300.08020.16
7.0.10.0070.08720.01
7.0.00.0170.04020.12
5.6.280.0030.07321.11
5.6.210.0070.07320.70
5.6.200.0130.03018.13
5.6.190.0030.04320.45
5.6.180.4100.04020.56
5.6.170.0330.07320.33
5.6.160.0070.06320.40
5.6.150.0070.05018.17
5.6.140.0030.08318.18
5.6.130.0070.07018.15
5.6.120.0130.04321.01
5.6.110.0100.05720.95
5.6.100.0170.07320.97
5.6.90.0000.04321.09
5.6.80.0000.04320.35
5.6.70.3170.03320.36
5.5.350.0070.03320.30
5.5.340.0100.08017.97
5.5.330.0170.07320.12
5.5.320.3200.03720.17
5.5.310.0200.04020.45
5.5.300.0070.05318.01
5.5.290.0070.08017.96
5.5.280.0130.07720.69
5.5.270.0130.06020.85
5.5.260.0070.07720.96
5.5.250.0100.06020.61
5.5.240.0230.07320.20
5.4.450.0300.03719.49
5.4.440.0270.03719.38
5.4.430.0130.05019.21
5.4.420.0400.05019.23
5.4.410.0130.04319.35
5.4.400.0130.04051.95
5.4.390.0370.04349.59
5.4.380.0230.04718.72
5.4.370.0100.05718.69
5.4.360.0130.05318.67
5.4.350.0200.05018.56
5.4.340.0070.05718.49
5.4.320.0070.04012.45
5.4.310.0040.04412.45
5.4.300.0140.09612.45
5.4.290.0130.08612.45
5.4.280.0100.08512.34
5.4.270.0180.15012.35
5.4.260.0120.06712.35
5.4.250.0100.05412.35
5.4.240.0100.08312.34
5.4.230.0070.09112.34
5.4.220.0100.08312.34
5.4.210.0130.06912.34
5.4.200.0170.09612.34
5.4.190.0170.07312.34
5.4.180.0110.08112.34
5.4.170.0150.06312.35
5.4.160.0100.06912.34
5.4.150.0120.06912.34
5.4.140.0150.07412.02
5.4.130.0170.08812.01
5.4.120.0150.08711.97
5.4.110.0110.05211.97
5.4.100.0070.04911.96
5.4.90.0080.05311.96
5.4.80.0090.06211.96
5.4.70.0140.09411.96
5.4.60.0130.07011.96
5.4.50.0120.06911.96
5.4.40.0190.07611.95
5.4.30.0220.12811.95
5.4.20.0350.18511.95
5.4.10.0180.09511.94
5.4.00.0190.10011.44
5.3.290.0070.03812.80
5.3.280.0190.07212.71
5.3.270.0310.11312.72
5.3.260.0170.13312.72
5.3.250.0120.07712.72
5.3.240.0190.09112.72
5.3.230.0210.11112.71
5.3.220.0060.06012.68
5.3.210.0130.08212.68
5.3.200.0180.11212.68
5.3.190.0090.04912.68
5.3.180.0100.05212.68
5.3.170.0090.06412.67
5.3.160.0130.07612.67
5.3.150.0110.08512.67
5.3.140.0090.04112.66
5.3.130.0130.05712.66
5.3.120.0070.04412.66
5.3.110.0190.07612.66
5.3.100.0090.07512.12
5.3.90.0030.04012.08
5.3.80.0060.03712.07
5.3.70.0040.04712.08
5.3.60.0150.06112.06
5.3.50.0100.04512.00
5.3.40.0300.12812.00
5.3.30.0080.05411.94
5.3.20.0160.07811.73
5.3.10.0070.05411.69
5.3.00.0080.05811.67
5.2.170.0120.0559.18
5.2.160.0100.0919.18
5.2.150.0090.0459.18
5.2.140.0100.0399.17
5.2.130.0060.0599.14
5.2.120.0120.0709.13
5.2.110.0170.0629.14
5.2.100.0110.0649.13
5.2.90.0100.0549.13
5.2.80.0060.0399.13
5.2.70.0110.0389.13
5.2.60.0120.0459.08
5.2.50.0120.0569.05
5.2.40.0140.0519.03
5.2.30.0060.0439.00
5.2.20.0070.0399.00
5.2.10.0080.0388.93
5.2.00.0100.0398.79
5.1.60.0040.0368.07
5.1.50.0050.0458.07
5.1.40.0040.0398.05
5.1.30.0110.0708.40
5.1.20.0040.0638.43
5.1.10.0100.0398.15
5.1.00.0130.0448.15
5.0.50.0090.0466.62
5.0.40.0060.0276.49
5.0.30.0080.0446.30
5.0.20.0080.0486.27
5.0.10.0090.0586.24
5.0.00.0080.0786.23
4.4.90.0080.0234.78
4.4.80.0280.0684.75
4.4.70.0080.0194.75
4.4.60.0030.0164.75
4.4.50.0050.0194.77
4.4.40.0060.0584.71
4.4.30.0080.0404.76
4.4.20.0070.0384.84
4.4.10.0030.0534.85
4.4.00.0020.0414.76
4.3.110.0020.0174.67
4.3.100.0030.0164.66
4.3.90.0050.0184.63
4.3.80.0170.0794.58
4.3.70.0020.0364.63
4.3.60.0180.0504.63
4.3.50.0110.0394.62
4.3.40.0060.0514.54
4.3.30.0060.0463.29
4.3.20.0040.0263.27
4.3.10.0070.0443.22
4.3.00.0070.01746.74