3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x = [ 'foo' => ['a' => 1, 'b' => 2], 'bar' => ['a' => 3, 'b' => 4], 'fizz' => ['a' => 5, 'b' => 6], 'buzz' => ['a' => 7, 'b' => 8] ];

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.0rc40.0100.00798.97
7.3.0rc30.0120.00615.89
7.2.00.0000.01819.09
7.1.100.0040.00418.00
7.1.70.0030.00316.97
7.1.60.0090.01519.25
7.1.50.0000.01116.53
7.1.00.0070.07322.29
7.0.200.0000.00816.60
7.0.140.0100.06721.96
7.0.120.0100.06722.15
7.0.60.0030.07319.92
7.0.50.0100.08017.78
7.0.40.0230.04320.40
7.0.30.0170.04720.00
7.0.20.0470.06020.09
7.0.10.0100.07720.09
7.0.00.0200.03020.12
5.6.280.0030.09021.03
5.6.210.0070.08020.62
5.6.200.0070.04018.16
5.6.190.0030.05320.35
5.6.180.0530.07020.68
5.6.170.0170.04720.38
5.6.160.0000.04320.37
5.6.150.0100.06718.22
5.6.140.0100.08018.07
5.6.130.0100.05018.11
5.6.120.0170.07320.95
5.6.110.0030.06321.10
5.6.100.0070.03720.96
5.6.90.0170.07720.96
5.6.80.0070.03720.48
5.5.350.0030.07020.39
5.5.340.0070.06317.95
5.5.330.0100.05320.25
5.5.320.1600.07020.29
5.5.310.0300.07020.12
5.5.300.0070.03718.02
5.5.290.0000.08717.88
5.5.280.0100.04020.97
5.5.270.0100.04020.77
5.5.260.0030.05720.66
5.5.250.0070.07320.68
5.5.240.0030.08020.23
5.4.450.0600.04325.18
5.4.440.0200.04025.17
5.4.430.0470.04725.17
5.4.420.0600.04025.17
5.4.410.0100.03325.17
5.4.400.0170.03025.17
5.4.390.0300.04025.17
5.4.380.0500.03325.17
5.4.370.0330.04325.17
5.4.360.0270.03325.17
5.4.350.0330.04725.17
5.4.340.0530.03725.17
5.4.320.0270.03725.17
5.4.310.0470.03025.17
5.4.300.0430.05725.17
5.4.290.0670.03725.17
5.4.280.0230.04325.17
5.4.270.0300.03025.17
5.4.260.0430.04025.17
5.4.250.0530.04325.17
5.4.240.0200.05025.17
5.4.230.0300.04025.17
5.4.220.0370.04025.16
5.4.210.0670.04025.16
5.4.200.0230.04025.16
5.4.190.0270.04325.16
5.4.180.0530.03325.16
5.4.170.0370.03725.16
5.4.160.0330.04725.16
5.4.150.0630.03325.16
5.4.140.0500.03725.16
5.4.130.0530.04325.16
5.4.120.0470.04325.16
5.4.110.0700.02725.16
5.4.100.0600.03025.16
5.4.90.0400.04025.16
5.4.80.0630.03325.16
5.4.70.0700.06725.16
5.4.60.0630.03725.16
5.4.50.0200.04025.16
5.4.40.0370.03325.16
5.4.30.0470.04325.16
5.4.20.0270.04025.16
5.4.10.0500.04025.16
5.4.00.0400.03725.16
5.3.290.0270.04025.17
5.3.280.0600.04325.17
5.3.270.0470.04025.16
5.3.260.0570.03725.16
5.3.250.0370.04325.16
5.3.240.0500.04325.16
5.3.230.0430.04325.16
5.3.220.0530.04325.16
5.3.210.0370.04725.16
5.3.200.0300.03725.16
5.3.190.0630.02725.16
5.3.180.0500.03025.16
5.3.170.0370.04725.16
5.3.160.0330.05725.16
5.3.150.0130.04725.16
5.3.140.0570.02725.16
5.3.130.0400.03325.16
5.3.120.0270.04325.16
5.3.110.0370.07025.16
5.3.100.0500.03325.16
5.3.90.0300.03025.16
5.3.80.0600.05325.16
5.3.70.0700.04725.16
5.3.60.0300.03725.16
5.3.50.0130.03325.16
5.3.40.0100.03725.16
5.3.30.0370.03725.16
5.3.20.0130.03025.16
5.3.10.0100.04025.16
5.3.00.0570.03325.16