3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php floor((0.1+0.7)*10);

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.10.0460.01014.32
7.3.00.0520.00714.56
7.2.130.0510.00314.80
7.2.120.0460.01214.55
7.2.110.0420.01014.57
7.2.100.0440.01014.65
7.2.90.0310.01714.80
7.2.80.0480.00614.82
7.2.70.0510.00314.78
7.2.60.0180.01115.74
7.2.50.0420.01014.63
7.2.40.0410.00914.73
7.2.30.0410.01114.85
7.2.20.0490.01014.82
7.2.10.0410.00714.70
7.2.00.0150.01316.73
7.1.250.0310.01513.27
7.1.240.1280.00413.88
7.1.230.0450.00813.80
7.1.220.0400.00913.89
7.1.210.0450.00313.89
7.1.200.0250.00614.76
7.1.190.0430.01113.74
7.1.180.0490.01113.89
7.1.170.0580.00313.90
7.1.160.0510.00313.54
7.1.150.0470.00313.96
7.1.140.0450.00613.70
7.1.130.0390.01213.80
7.1.120.0420.01013.62
7.1.110.0480.01013.92
7.1.100.0240.00915.95
7.1.90.0370.01313.96
7.1.80.0330.01013.76
7.1.70.0220.00515.37
7.1.60.0290.01216.79
7.1.50.0310.01324.12
7.1.40.0330.00313.84
7.1.30.0140.01413.72
7.1.20.0580.00713.89
7.1.10.0360.00713.78
7.1.00.0210.04317.91
7.0.330.0550.00613.41
7.0.320.0440.00913.25
7.0.310.0510.00013.59
7.0.300.0520.00413.32
7.0.290.0520.01413.41
7.0.280.0550.00313.55
7.0.270.0350.00313.13
7.0.260.0760.00313.48
7.0.250.0570.00313.41
7.0.240.0540.00013.57
7.0.230.0400.00613.39
7.0.220.0290.00813.24
7.0.210.0530.00313.50
7.0.200.0290.00314.97
7.0.190.0480.00613.48
7.0.180.0240.00513.36
7.0.170.0320.00613.38
7.0.160.0340.00913.47
7.0.150.0460.01013.32
7.0.140.0230.03817.69
7.0.130.0510.00613.37
7.0.120.0510.00613.34
7.0.110.0380.00313.27
7.0.100.0330.00313.35
7.0.90.0320.01013.34
7.0.80.0410.00613.29
7.0.70.0510.00313.43
7.0.60.0160.03716.73
7.0.50.0240.04015.68
7.0.40.0340.02916.91
7.0.30.0230.03316.94
7.0.20.0370.02416.82
7.0.10.0360.03716.85
7.0.00.0350.04716.69
hhvm-3.22.00.1390.20389.85
hhvm-3.21.30.1290.17689.80
hhvm-3.21.00.1310.19090.16
hhvm-3.20.20.1390.19390.40
hhvm-3.19.20.1290.13989.68
hhvm-3.18.50.1280.14988.44
hhvm-3.18.40.1200.15888.76
hhvm-3.17.30.0980.15886.69
hhvm-3.15.40.1260.10284.91
hhvm-3.13.20.1190.11796.23
hhvm-3.12.140.1220.13994.91
hhvm-3.11.10.0980.10187.43
hhvm-3.10.10.0870.11384.37
5.6.380.0120.01214.21
5.6.370.0090.01614.45
5.6.360.0170.00614.34
5.6.350.0160.00514.34
5.6.340.0130.00613.85
5.6.330.0100.01614.04
5.6.320.0210.01513.97
5.6.310.0100.01314.21
5.6.300.0150.00614.26
5.6.290.0180.01013.70
5.6.280.0080.03817.80
5.6.270.0070.01014.03
5.6.260.0130.00314.25
5.6.250.0140.00814.11
5.6.240.0130.00214.20
5.6.230.0180.00514.08
5.6.220.0080.01114.09
5.6.210.0070.03917.29
5.6.200.0090.04216.11
5.6.190.0150.04317.29
5.6.180.0100.04317.37
5.6.170.0240.02017.28
5.6.160.0060.02917.38
5.6.150.0130.03816.04
5.6.140.0140.02416.03
5.6.130.0100.04715.84
5.6.120.0140.04517.40
5.6.110.0120.03317.62
5.6.100.0130.04217.60
5.6.90.0110.04017.61
5.6.80.0090.04317.39
5.6.70.0200.03817.16
5.6.60.0080.00814.16
5.6.50.0030.00614.06
5.6.40.0070.00713.82
5.6.30.0080.00814.07
5.6.20.0090.00614.09
5.6.10.0140.00014.07
5.6.00.0030.02214.04
5.5.380.0040.00410.83
5.5.370.0120.00010.96
5.5.360.0100.00510.69
5.5.350.0020.02715.35
5.5.340.0150.03314.53
5.5.330.0130.04015.41
5.5.320.0180.02315.55
5.5.310.0160.02315.37
5.5.300.0070.04014.14
5.5.290.0080.03814.25
5.5.280.0030.02315.63
5.5.270.0100.02715.72
5.5.260.0080.04415.66
5.5.250.0100.02815.61
5.5.240.0090.01815.56
5.5.230.0130.01211.05
5.5.220.0050.00510.87
5.5.210.0000.00710.67
5.5.200.0050.00510.73
5.5.190.0080.00210.79
5.5.180.0170.00010.81
5.5.170.0050.00510.57
5.5.160.0160.00710.74
5.5.150.0040.00410.86
5.5.140.0070.01010.93
5.5.130.0070.00510.94
5.5.120.0040.00410.88
5.5.110.0080.00410.94
5.5.100.0100.00710.57
5.5.90.0090.00410.52
5.5.80.0150.00810.91
5.5.70.0090.00510.74
5.5.60.0080.00810.89
5.5.50.0140.00510.91
5.5.40.0040.00810.85
5.5.30.0160.00010.61
5.5.20.0140.00010.82
5.5.10.0110.00410.96
5.5.00.0050.00510.67
5.4.450.0150.02415.01
5.4.440.0130.02415.13
5.4.430.0190.02115.01
5.4.420.0120.02514.90
5.4.410.0160.02414.83
5.4.400.0130.02414.89
5.4.390.0300.02231.65
5.4.380.0080.02814.62
5.4.370.0130.03014.55
5.4.360.0120.03314.73
5.4.350.0180.02314.86
5.4.340.0140.02514.83
5.4.330.0060.00910.51
5.4.320.0020.02411.57
5.4.310.0070.02811.47
5.4.300.0060.02711.53
5.4.290.0060.02611.55
5.4.280.0030.02211.46
5.4.270.0060.03111.63
5.4.260.0070.02911.55
5.4.250.0100.02511.61
5.4.240.0100.02411.43
5.4.230.0100.02311.53
5.4.220.0070.03311.42
5.4.210.0070.04011.63
5.4.200.0090.03911.58
5.4.190.0060.03311.68
5.4.180.0090.02311.48
5.4.170.0100.02511.66
5.4.160.0080.02311.55
5.4.150.0060.02511.38
5.4.140.0070.02211.38
5.4.130.0060.02211.49
5.4.120.0060.02111.27
5.4.110.0090.02011.35
5.4.100.0090.02011.45
5.4.90.0060.02311.27
5.4.80.0070.02111.35
5.4.70.0070.02011.29
5.4.60.0080.01811.38
5.4.50.0090.02111.24
5.4.40.0040.02111.28
5.4.30.0060.02311.33
5.4.20.0070.02111.31
5.4.10.0070.01811.31
5.4.00.0050.02511.08
5.3.290.0070.02511.64
5.3.280.0090.02711.47
5.3.270.0070.02311.51
5.3.260.0090.02311.51
5.3.250.0060.02111.42
5.3.240.0100.02311.44
5.3.230.0090.02211.54
5.3.220.0060.02311.46
5.3.210.0080.02311.31
5.3.200.0120.02311.45
5.3.190.0080.02211.46
5.3.180.0090.02411.50
5.3.170.0050.02311.48
5.3.160.0090.03111.47
5.3.150.0080.02111.51
5.3.140.0070.02711.48
5.3.130.0080.02011.37
5.3.120.0060.02211.47
5.3.110.0090.01911.45
5.3.100.0060.02211.18
5.3.90.0050.02211.21
5.3.80.0080.01911.12
5.3.70.0080.02011.11
5.3.60.0040.02311.21
5.3.50.0080.01811.08
5.3.40.0080.01911.15
5.3.30.0090.02411.09
5.3.20.0080.02110.94
5.3.10.0090.01910.85
5.3.00.0070.02010.89
5.2.170.0050.0339.17
5.2.160.0030.0329.18
5.2.150.0040.0329.18
5.2.140.0060.0319.17
5.2.130.0060.0329.13
5.2.120.0080.0299.13
5.2.110.0050.0319.14
5.2.100.0030.0319.13
5.2.90.0070.0299.13
5.2.80.0050.0319.13
5.2.70.0060.0379.13
5.2.60.0070.0469.09
5.2.50.0060.0439.05
5.2.40.0050.0479.03
5.2.30.0040.0459.01
5.2.20.0030.0459.00
5.2.10.0100.0388.91
5.2.00.0050.0318.77
5.1.60.0070.0248.06
5.1.50.0050.0308.05
5.1.40.0050.0298.04
5.1.30.0060.0318.39
5.1.20.0040.0318.41
5.1.10.0040.0268.13
5.1.00.0050.0258.13
5.0.50.0060.0186.61
5.0.40.0020.0206.47
5.0.30.0030.0316.28
5.0.20.0030.0206.27
5.0.10.0040.0196.25
5.0.00.0030.0316.25
4.4.90.0030.0154.78
4.4.80.0030.0164.76
4.4.70.0020.0164.76
4.4.60.0040.0144.76
4.4.50.0020.0164.77
4.4.40.0040.0254.71
4.4.30.0050.0164.76
4.4.20.0030.0174.84
4.4.10.0050.0194.85
4.4.00.0040.0274.76
4.3.110.0060.0184.67
4.3.100.0060.0184.67
4.3.90.0060.0164.63
4.3.80.0050.0294.59
4.3.70.0030.0184.63
4.3.60.0040.0174.63
4.3.50.0040.0184.63
4.3.40.0020.0274.54
4.3.30.0010.0193.30
4.3.20.0020.0173.29
4.3.10.0030.0163.24
4.3.00.0070.01750.62