3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = [2,'g' => 3,4]; array_unshift($a, 6); var_dump($a);

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.0090.00616.53
7.2.00.0060.01019.32
7.1.200.0090.00315.63
7.1.100.0030.00717.93
7.1.70.0090.00616.81
7.1.60.0180.00719.46
7.1.50.0030.02116.80
7.1.00.0030.09022.40
7.0.200.0000.00716.34
7.0.140.0000.07722.19
7.0.60.0030.04719.79
7.0.50.0070.06717.88
7.0.40.0200.04320.02
7.0.30.0130.04720.02
7.0.20.0230.06720.00
7.0.10.0070.08720.30
7.0.00.0130.07320.00
5.6.280.0030.07321.03
5.6.210.0030.08320.65
5.6.200.0070.08018.15
5.6.190.0070.04320.73
5.6.180.0030.09020.43
5.6.170.0270.05320.37
5.6.160.0130.04720.40
5.6.150.0130.04318.18
5.6.140.0100.08018.21
5.6.130.0100.07318.21
5.6.120.0100.07321.00
5.6.110.0000.06321.08
5.6.100.0100.08320.98
5.6.90.0100.08021.02
5.6.80.0130.05720.40
5.5.350.0230.03720.45
5.5.340.0000.04317.89
5.5.330.0100.08320.43
5.5.320.0230.03320.41
5.5.310.0200.05020.13
5.5.300.0070.04017.98
5.5.290.0000.06017.95
5.5.280.0100.08320.89
5.5.270.0030.08320.86
5.5.260.0030.08020.88
5.5.250.0130.06320.60
5.5.240.0370.05720.21
5.4.450.0830.06719.56
5.4.440.0600.06319.10
5.4.430.0130.05019.56
5.4.420.0170.05019.09
5.4.410.0170.05718.99
5.4.400.0770.04718.78
5.4.390.0630.05319.18
5.4.380.0400.05018.65
5.4.370.0300.05018.73
5.4.360.0430.07018.72
5.4.350.0300.06018.59
5.4.340.0230.05318.72
5.4.320.0050.04812.45
5.4.310.0030.04912.45
5.4.300.0100.03912.45
5.4.290.0110.06412.43
5.4.280.0100.06012.33
5.4.270.0070.03612.33
5.4.260.0190.08012.33
5.4.250.0130.08312.33
5.4.240.0100.06112.33
5.4.230.0070.03912.32
5.4.220.0080.03912.32
5.4.210.0050.04712.32
5.4.200.0080.05112.32
5.4.190.0130.04612.32
5.4.180.0070.04412.32
5.4.170.0080.05312.33
5.4.160.0040.05312.32
5.4.150.0060.05112.32
5.4.140.0080.05512.01
5.4.130.0030.07111.99
5.4.120.0080.05411.95
5.4.110.0120.04211.95
5.4.100.0080.04411.95
5.4.90.0120.08011.95
5.4.80.0130.06311.95
5.4.70.0120.07411.95
5.4.60.0050.03711.95
5.4.50.0090.04511.95
5.4.40.0100.07111.93
5.4.30.0080.04011.93
5.4.20.0140.07911.93
5.4.10.0070.03911.93
5.4.00.0080.04011.42
5.3.290.0090.04112.80
5.3.280.0070.04712.71
5.3.270.0070.05112.72
5.3.260.0060.05512.72
5.3.250.0050.05012.72
5.3.240.0060.04712.72
5.3.230.0100.05112.71
5.3.220.0080.05212.68
5.3.210.0070.07812.68
5.3.200.0110.06912.68
5.3.190.0080.06412.68
5.3.180.0100.04112.68
5.3.170.0100.03712.67
5.3.160.0060.04412.68
5.3.150.0050.04012.68
5.3.140.0050.04712.66
5.3.130.0110.03512.66
5.3.120.0080.06512.66
5.3.110.0040.05812.66
5.3.100.0090.04012.12
5.3.90.0050.03712.09
5.3.80.0080.03512.08
5.3.70.0030.03912.07
5.3.60.0030.04512.06
5.3.50.0050.03712.00
5.3.40.0060.03712.00
5.3.30.0050.03611.95
5.3.20.0050.03611.73
5.3.10.0070.04311.70
5.3.00.0050.03611.68
5.2.170.0040.0319.18
5.2.160.0040.0309.18
5.2.150.0060.0299.18
5.2.140.0040.0339.18
5.2.130.0100.0379.14
5.2.120.0080.0399.14
5.2.110.0070.0339.14
5.2.100.0060.0279.14
5.2.90.0030.0309.14
5.2.80.0060.0299.14
5.2.70.0050.0309.14
5.2.60.0030.0339.08
5.2.50.0020.0339.06
5.2.40.0030.0309.04
5.2.30.0080.0269.02
5.2.20.0040.0299.00
5.2.10.0040.0288.93
5.2.00.0070.0268.78
5.1.60.0020.0268.07
5.1.50.0020.0278.06
5.1.40.0040.0308.05
5.1.30.0110.0298.40
5.1.20.0050.0298.41
5.1.10.0060.0338.14
5.1.00.0070.0288.14
5.0.50.0050.0296.62
5.0.40.0040.0276.48
5.0.30.0060.0366.30
5.0.20.0060.0266.26
5.0.10.0060.0266.23
5.0.00.0060.0286.23
4.4.90.0030.0174.78
4.4.80.0040.0184.76
4.4.70.0030.0224.76
4.4.60.0060.0234.76
4.4.50.0040.0214.77
4.4.40.0050.0314.70
4.4.30.0070.0254.76
4.4.20.0100.0264.84
4.4.10.0100.0474.84
4.4.00.0100.0414.76
4.3.110.0030.0274.67
4.3.100.0230.0464.66
4.3.90.0090.0204.64
4.3.80.0070.0254.58
4.3.70.0020.0154.63
4.3.60.0060.0244.63
4.3.50.0080.0284.63
4.3.40.0040.0354.54
4.3.30.0040.0193.29
4.3.20.0040.0193.26
4.3.10.0030.0283.21
4.3.00.0330.02710.54