3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php for ($i = 0; $i < 100; $i++) { if((int) log($i, 3) == log($i, 3)) { print $i ** 3; } else { print "1"; } print ", "; }

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.60.0040.00817.02
7.2.00.0040.00819.13
7.1.200.0120.00915.88
7.1.100.0040.00818.50
7.1.70.0040.00417.38
7.1.60.0070.01719.50
7.1.50.0130.01317.00
7.1.00.0070.07023.01
7.0.200.0780.00315.20
7.0.140.0070.06722.55
7.0.60.0030.07720.35
7.0.50.0170.04018.18
7.0.40.0100.04320.47
7.0.30.0230.03720.40
7.0.20.0270.05720.31
7.0.10.0300.06020.49
7.0.00.0030.09020.39
5.6.280.0130.06321.14
5.6.210.0170.06020.94
5.6.200.0130.07318.44
5.6.190.0070.08320.92
5.6.180.0300.07020.70
5.6.170.0330.07320.87
5.6.160.0070.06720.80
5.6.150.0130.06718.68
5.6.140.0030.07718.65
5.6.130.0030.04018.54
5.6.120.0100.08321.46
5.6.110.0130.08021.54
5.6.100.0130.07721.37
5.6.90.0100.07321.42
5.6.80.0200.07320.88
5.6.70.0330.06020.84
5.5.350.0300.06320.32
5.5.340.0030.04318.09
5.5.330.0100.04720.27
5.5.320.0030.05720.21
5.5.310.0300.07720.26
5.5.300.0070.05318.03
5.5.290.0030.05318.03
5.5.280.0030.04320.65
5.5.270.0030.04720.79
5.5.260.0030.06020.79
5.5.250.0030.09020.61
5.5.240.0200.04720.37
5.4.450.0070.06319.13
5.4.440.0800.06719.30
5.4.430.0800.05019.57
5.4.420.0930.05719.58
5.4.410.0200.06718.69
5.4.400.0370.05718.73
5.4.390.0300.05318.73
5.4.380.0300.05318.57
5.4.370.0330.05018.73
5.4.360.0270.05318.57
5.4.350.0270.06018.79
5.4.340.0370.04718.73
5.4.320.0300.05718.45
5.4.310.0270.05318.59
5.4.300.0230.05318.71
5.4.290.0270.05018.59
5.4.280.0270.05318.73
5.4.270.0230.05318.67
5.4.260.0200.06018.62
5.4.250.0230.06018.58
5.4.240.0430.04018.76
5.4.230.0300.05018.64
5.4.220.0200.06318.80
5.4.210.0300.05318.80
5.4.200.0300.05016.62
5.4.190.0370.05018.48
5.4.180.0430.05018.72
5.4.170.0300.06018.57
5.4.160.0370.04718.61
5.4.150.0370.05018.67
5.4.140.0230.06316.26
5.4.130.0230.05316.20
5.4.120.0300.05016.29
5.4.110.0270.04716.29
5.4.100.0230.06316.17
5.4.90.0300.05016.30
5.4.80.0330.06716.21
5.4.70.0400.04016.30
5.4.60.0230.05716.23
5.4.50.0300.05016.13
5.4.40.0270.06316.26
5.4.30.0300.05316.40
5.4.20.0370.04716.25
5.4.10.0230.05716.20
5.4.00.0230.05715.74
5.3.290.0170.07014.61
5.3.280.0300.05314.49
5.3.270.0270.05714.61
5.3.260.0370.04014.61
5.3.250.0400.04014.60
5.3.240.0300.05314.64
5.3.230.0300.05014.52
5.3.220.0200.06314.49
5.3.210.0170.06314.64
5.3.200.0200.05714.48
5.3.190.0270.05314.65
5.3.180.0300.05014.45
5.3.170.0470.06714.55
5.3.160.0300.06014.65
5.3.150.0370.05014.61
5.3.140.0400.06714.45
5.3.130.0230.06314.54
5.3.120.0230.06014.48
5.3.110.0270.05714.63
5.3.100.0300.06314.11
5.3.90.0400.04714.11
5.3.80.0300.05714.11
5.3.70.0400.05713.95
5.3.60.0270.05713.95
5.3.50.0330.05013.89
5.3.40.0430.04714.02
5.3.30.0370.04313.89
5.3.20.0300.05313.64
5.3.10.0230.05713.74
5.3.00.0400.05713.71
5.2.170.0300.04011.07
5.2.160.0230.04311.28
5.2.150.0300.05311.29
5.2.140.0330.05711.10
5.2.130.0230.06011.09
5.2.120.0330.04011.16
5.2.110.0300.04011.08
5.2.100.0330.03311.08
5.2.90.0200.04011.02
5.2.80.0130.05711.13
5.2.70.0300.03711.05
5.2.60.0270.04011.20
5.2.50.0330.03710.98
5.2.40.0200.04010.93
5.2.30.0230.04310.93
5.2.20.0270.03711.07
5.2.10.0130.04710.91
5.2.00.0130.04710.67
5.1.60.0200.0339.99
5.1.50.0130.04010.03
5.1.40.0200.0339.94
5.1.30.0430.03010.38
5.1.20.0230.03310.41
5.1.10.0270.04010.12
5.1.00.0230.03710.14
5.0.50.0170.0278.61
5.0.40.0170.0238.41
5.0.30.0070.0478.26
5.0.20.0130.0278.18
5.0.10.0130.0378.15
5.0.00.0100.0508.28
4.4.90.0130.0205.94
4.4.80.0070.0235.91
4.4.70.0070.0275.89
4.4.60.0100.0235.91
4.4.50.0070.0235.93
4.4.40.0130.0305.86
4.4.30.0070.0275.82
4.4.20.0070.0235.91
4.4.10.0030.0275.98
4.4.00.0070.0375.92
4.3.110.0100.0235.84
4.3.100.0130.0205.79
4.3.90.0170.0135.91
4.3.80.0070.0405.78
4.3.70.0070.0235.91
4.3.60.0070.0235.77
4.3.50.0130.0175.78
4.3.40.0200.0275.80
4.3.30.0000.0274.56
4.3.20.0070.0234.55
4.3.10.0130.0134.47
4.3.00.0100.0236.63