3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(round(0, 2)); // When Warning is ignored the type juggling changed var_dump(number_format(120 / 0 * 100, 2));
based on k7llT

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.110.0360.00016.28
7.2.80.0090.00616.51
7.2.60.0070.01016.75
7.2.00.0060.00619.02
7.1.200.0040.00715.76
7.1.100.0000.00817.95
7.1.70.0050.00217.03
7.1.60.0130.01020.03
7.1.50.0040.01916.97
7.1.00.0070.07322.45
7.0.200.0410.00614.56
7.0.60.0100.06020.01
7.0.50.0030.08717.87
7.0.40.0030.06020.40
7.0.30.0530.06720.00
7.0.20.0300.07320.33
7.0.10.0330.07720.12
7.0.00.0030.05320.32
5.6.280.0030.07721.13
5.6.210.0130.07320.82
5.6.200.0070.03718.41
5.6.190.0070.07020.54
5.6.180.0030.08320.46
5.6.170.0400.06720.69
5.6.160.0130.06020.80
5.6.150.0130.07318.34
5.6.140.0100.07718.24
5.6.130.0030.07718.40
5.6.120.0000.04721.11
5.6.110.0030.09321.26
5.6.100.0130.08021.22
5.6.90.0070.04021.17
5.6.80.0100.06020.74
5.6.70.4270.04020.65
5.5.350.0000.09020.55
5.5.340.0030.04018.24
5.5.330.0070.04020.38
5.5.320.0270.08020.39
5.5.310.0030.05020.31
5.5.300.0030.08718.04
5.5.290.0070.08018.01
5.5.280.0070.05720.89
5.5.270.0070.04720.98
5.5.260.0100.07721.08
5.5.250.0030.04020.99
5.5.240.0070.08320.36
5.4.450.0170.05719.51
5.4.440.0030.07319.85
5.4.430.0130.05719.22
5.4.420.0200.06019.59
5.4.410.0230.05719.38
5.4.400.0200.04719.27
5.4.390.0230.04319.33
5.4.380.0100.05719.38
5.4.370.0170.05719.38
5.4.360.0230.05319.20
5.4.350.0200.05318.90
5.4.340.0130.06019.40
5.4.320.0170.05019.04
5.4.310.0300.05319.35
5.4.300.0130.05319.18
5.4.290.0130.06019.27
5.4.280.0130.05318.93
5.4.270.0100.05319.20
5.4.260.0170.05019.39
5.4.250.0130.05019.27
5.4.240.0200.05019.34
5.4.230.0300.05019.37
5.4.220.0170.06019.38
5.4.210.0270.04319.25
5.4.200.0100.06019.34
5.4.190.0270.04719.34
5.4.180.0070.05719.41
5.4.170.0200.04719.17
5.4.160.0200.05319.36
5.4.150.0200.05319.36
5.4.140.0230.04316.62
5.4.130.0100.05016.60
5.4.120.0200.04716.46
5.4.110.0270.04716.70
5.4.100.0200.04316.53
5.4.90.0230.05316.70
5.4.80.0070.05316.58
5.4.70.0030.04016.29
5.4.60.0000.05716.38
5.4.50.0030.05716.52
5.4.40.0000.03716.34
5.4.30.0170.03716.51
5.4.20.0230.04316.34
5.4.10.0070.07716.61
5.3.290.0630.03315.01
5.3.280.1030.02715.00
5.3.270.1000.03014.98
5.3.260.0370.04314.98
5.3.250.1300.02014.98
5.3.240.0700.03314.93
5.3.230.0630.03314.93
5.3.220.0770.04314.93
5.3.210.0570.03714.93
5.3.200.1030.03314.93
5.3.190.1070.03714.93
5.3.180.0830.05714.93