3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arr = array(); for ($i=1;$i<5;$i++) { $arr[] = array($i => $i+5); } print_r($arr); // Standard asort asort($arr); print_r($tmp);
based on aav1a

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.00.0030.00919.41
7.1.200.0040.00715.78
7.1.100.0040.00817.98
7.1.70.0020.00517.18
7.1.60.0070.01719.25
7.1.50.0090.00316.91
7.1.00.0070.07322.30
7.0.200.0090.00016.73
7.0.140.0030.07322.07
7.0.60.0100.03719.92
7.0.50.0030.06717.87
7.0.40.0170.05720.20
7.0.30.0170.04720.10
7.0.20.0330.07020.12
7.0.10.0030.09020.16
7.0.00.0100.04720.25
5.6.280.0000.07320.99
5.6.210.0030.08020.51
5.6.200.0100.08318.25
5.6.190.0130.04020.66
5.6.180.0300.07020.43
5.6.170.0070.05020.47
5.6.160.0070.05020.44
5.6.150.0100.03718.21
5.6.140.0100.08018.18
5.6.130.0100.07718.28
5.6.120.0130.05720.95
5.6.110.0100.08321.04
5.6.100.0100.03720.88
5.6.90.0100.08021.00
5.6.80.0130.07020.35
5.5.350.0030.08020.38
5.5.340.0030.05317.99
5.5.330.0070.08020.28
5.5.320.0070.08020.26
5.5.310.0130.06020.32
5.5.300.0130.06317.98
5.5.290.0170.04317.98
5.5.280.0130.07720.64
5.5.270.0070.05720.76
5.5.260.0070.04320.64
5.5.250.0070.06720.70
5.5.240.0170.06320.25
5.4.450.0200.03719.59
5.4.440.0230.03719.54
5.4.430.0270.04319.48
5.4.420.0200.04019.19
5.4.410.0230.04019.05
5.4.400.0200.03719.06
5.4.390.0270.03719.13
5.4.380.0370.07718.75
5.4.370.0400.06018.59
5.4.360.0470.04718.61
5.4.350.0570.06718.75
5.4.340.0300.06018.61
5.4.320.0050.03812.48
5.4.310.0080.03612.48
5.4.300.0060.04212.48
5.4.290.0090.04112.48
5.4.280.0050.03912.38
5.4.270.0040.03812.38
5.4.260.0080.03612.38
5.4.250.0080.03612.38
5.4.240.0050.03712.38
5.4.230.0080.03512.37
5.4.220.0080.03412.37
5.4.210.0060.03512.37
5.4.200.0070.03612.37
5.4.190.0070.03612.36
5.4.180.0070.03712.37
5.4.170.0130.04612.38
5.4.160.0070.03512.38
5.4.150.0080.03512.37
5.4.140.0110.04112.05
5.4.130.0080.03312.04
5.4.120.0060.03512.00
5.4.110.0050.03611.99
5.4.100.0050.03612.00
5.4.90.0060.03811.99
5.4.80.0050.03811.99
5.4.70.0060.03511.99
5.4.60.0090.03311.99
5.4.50.0060.03611.99
5.4.40.0070.03411.97
5.4.30.0070.03611.97
5.4.20.0040.03711.98
5.4.10.0060.03811.97
5.4.00.0060.03811.46
5.3.290.0070.03912.80
5.3.280.0090.03512.71
5.3.270.0110.03412.72
5.3.260.0050.04012.72
5.3.250.0060.03912.72
5.3.240.0090.03512.72
5.3.230.0080.03612.71
5.3.220.0060.03812.68
5.3.210.0080.04012.68
5.3.200.0090.04112.68
5.3.190.0060.03812.68
5.3.180.0070.03712.67
5.3.170.0060.03712.67
5.3.160.0050.04612.67
5.3.150.0040.04012.67
5.3.140.0040.04012.66
5.3.130.0060.03912.66
5.3.120.0030.04412.66
5.3.110.0080.04112.66
5.3.100.0070.04512.12
5.3.90.0070.04612.09
5.3.80.0080.03412.08
5.3.70.0050.03812.08
5.3.60.0030.04012.06
5.3.50.0080.03512.01
5.3.40.0070.03912.01
5.3.30.0040.04511.97
5.3.20.0080.03411.75
5.3.10.0110.04511.71
5.3.00.0050.04411.71
5.2.170.0060.0369.21
5.2.160.0080.0279.20
5.2.150.0060.0309.21
5.2.140.0030.0329.20
5.2.130.0040.0319.16
5.2.120.0060.0289.16
5.2.110.0060.0279.17
5.2.100.0040.0309.17
5.2.90.0050.0299.17
5.2.80.0030.0389.16
5.2.70.0060.0299.16
5.2.60.0040.0319.11
5.2.50.0050.0309.09
5.2.40.0040.0299.06
5.2.30.0090.0349.04
5.2.20.0070.0279.02
5.2.10.0050.0288.94
5.2.00.0080.0258.79
5.1.60.0040.0258.08
5.1.50.0010.0288.07
5.1.40.0030.0268.05
5.1.30.0040.0268.41
5.1.20.0050.0268.43
5.1.10.0020.0288.15
5.1.00.0050.0258.15
5.0.50.0020.0236.63
5.0.40.0040.0196.49
5.0.30.0040.0336.30
5.0.20.0050.0176.27
5.0.10.0020.0236.25
5.0.00.0050.0326.24
4.4.90.0020.0174.78
4.4.80.0050.0134.75
4.4.70.0030.0164.76
4.4.60.0010.0174.75
4.4.50.0030.0154.77
4.4.40.0030.0254.71
4.4.30.0040.0144.76
4.4.20.0040.0144.85
4.4.10.0050.0134.85
4.4.00.0030.0254.76
4.3.110.0040.0154.67
4.3.100.0020.0174.66
4.3.90.0030.0154.63
4.3.80.0030.0244.59
4.3.70.0030.0154.63
4.3.60.0050.0124.63
4.3.50.0030.0154.62
4.3.40.0050.0224.54
4.3.30.0030.0153.29
4.3.20.0050.0133.27
4.3.10.0020.0163.23
4.3.00.0070.01315.26