3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function main() { $x = array('hakunamatata' => 12); $s = 0; for ($i = 0; $i < 1000000; $i++) { $s += $x['hakunamatata']; } var_dump($s); } main();
based on A9veO

Here you find the average performance (time & memory) of each version. A greyed 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.0030.04519.19
7.1.100.0000.04118.28
7.1.70.0070.03516.97
7.1.60.0070.05119.22
7.1.50.0210.05216.79
7.1.00.0000.11722.32
7.0.200.0060.03816.72
7.0.140.0000.06022.21
7.0.60.0070.12320.10
7.0.50.0070.12017.87
7.0.40.0070.12020.23
7.0.30.0370.11320.19
7.0.20.0100.08020.26
7.0.10.0070.10720.06
7.0.00.0130.11320.26
5.6.280.0030.15720.99
5.6.210.0030.09320.73
5.6.200.0100.14018.13
5.6.190.0030.15320.61
5.6.180.0230.09020.58
5.6.170.0270.12020.72
5.6.160.0100.09320.52
5.6.150.0100.10018.19
5.6.140.0070.09718.11
5.6.130.0070.08318.18
5.6.120.0000.08720.97
5.6.110.0000.15021.14
5.6.100.0100.13321.03
5.6.90.0070.09021.09
5.6.80.0100.13720.40
5.5.350.0300.13720.47
5.5.340.0030.08718.10
5.5.330.0030.09320.18
5.5.320.0300.09020.32
5.5.310.0230.12320.30
5.5.300.0130.14718.09
5.5.290.0030.13017.97
5.5.280.0030.09720.67
5.5.270.0070.08720.80
5.5.260.0100.14320.98
5.5.250.0100.13320.55
5.5.240.0070.14020.24
5.4.450.0600.13719.28
5.4.440.0230.12019.41
5.4.430.0300.11319.64
5.4.420.0200.11319.52
5.4.410.0130.12719.48
5.4.400.0200.12019.23
5.4.390.0270.11718.80
5.4.380.0170.16718.76
5.4.370.0200.18718.56
5.4.360.0170.12718.76
5.4.350.0170.12718.56
5.4.340.0270.11018.76
5.4.320.0230.12018.63
5.4.310.0070.17718.56
5.4.300.0200.12318.70
5.4.290.0130.13018.82
5.4.280.0200.13018.58
5.4.270.0370.16018.69
5.4.260.0200.17018.52
5.4.250.0300.16718.76
5.4.240.0330.17018.56
5.4.230.0300.16318.57
5.4.220.0200.18018.75
5.4.210.0170.14018.55
5.4.200.0330.15716.80
5.4.190.0170.13318.69
5.4.180.0270.11318.75
5.4.170.0100.13018.55
5.4.160.0300.13718.61
5.4.150.0230.16318.57
5.4.140.0330.14016.22
5.4.130.0170.12016.32
5.4.120.0170.13016.26
5.4.110.0100.12016.22
5.4.100.0270.18016.27
5.4.90.0270.16716.27
5.4.80.0230.17016.22
5.4.70.0200.18016.14
5.4.60.0170.12016.22
5.4.50.0300.15716.17
5.4.40.0330.16716.30
5.4.30.0300.11716.18
5.4.20.0330.13316.18
5.4.10.0300.14316.17
5.4.00.0230.13015.77
5.3.290.0230.14314.76
5.3.280.0370.20714.58
5.3.270.0170.15314.71
5.3.260.0100.16314.65
5.3.250.0330.16014.70
5.3.240.0100.16314.63
5.3.230.0170.16014.76
5.3.220.0200.18314.60
5.3.210.0200.15014.61
5.3.200.0230.16314.79
5.3.190.0230.14014.70
5.3.180.0200.14714.66
5.3.170.0200.15014.61
5.3.160.0300.13314.66
5.3.150.0200.14314.70
5.3.140.0200.14314.77
5.3.130.0070.15714.68
5.3.120.0170.14714.65
5.3.110.0170.17014.56
5.3.100.0270.26014.02
5.3.90.0270.14714.15
5.3.80.0200.15314.23
5.3.70.0130.15314.22
5.3.60.0170.14714.04
5.3.50.0170.16313.97
5.3.40.0330.16714.00
5.3.30.0100.15014.02
5.3.20.0230.13313.71
5.3.10.0300.15313.79
5.3.00.0200.14313.66
5.2.170.0130.17311.20
5.2.160.0170.16311.14
5.2.150.0200.16011.16
5.2.140.0030.19011.24
5.2.130.0130.16711.20
5.2.120.0200.16711.21
5.2.110.0130.17011.14
5.2.100.0130.16011.22
5.2.90.0200.19711.22
5.2.80.0130.17711.22
5.2.70.0170.17311.20
5.2.60.0130.16011.15
5.2.50.0230.16311.08
5.2.40.0070.19711.02
5.2.30.0170.17311.17
5.2.20.0200.15711.06
5.2.10.0300.14310.86
5.2.00.0230.15310.91
5.1.60.0170.15710.18
5.1.50.0230.16010.06
5.1.40.0130.1679.96
5.1.30.0170.16010.37
5.1.20.0130.16310.55
5.1.10.0030.17010.20
5.1.00.0100.17710.10
5.0.50.0100.3478.65
5.0.40.0070.3638.54
5.0.30.0130.4408.32
5.0.20.0100.3378.24
5.0.10.0130.3538.37
5.0.00.0100.3378.26
4.4.90.0070.3235.89
4.4.80.0030.3605.91
4.4.70.0100.3505.96
4.4.60.0100.3435.90
4.4.50.0070.3775.88
4.4.40.0000.3805.89
4.4.30.0100.3635.90
4.4.20.0030.3435.96
4.4.10.0170.3705.94
4.4.00.0070.4076.02
4.3.110.0030.3475.82
4.3.100.0100.3635.82
4.3.90.0070.3375.80
4.3.80.0130.3705.83
4.3.70.0070.3535.77
4.3.60.0170.3875.80
4.3.50.0030.3605.84
4.3.40.0100.3235.74
4.3.30.0000.3674.57
4.3.20.0030.3404.56
4.3.10.0030.3634.49
4.3.00.0070.3436.73