3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array(1); for ($mppb_times = 4; $mppb_times>0; $mppb_times--) $a = array_merge($a, $a); print_r($a);
based on Vo7WW

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.0000.01116.96
7.1.200.0040.00815.75
7.1.70.0040.00417.32
7.1.60.0130.01019.32
7.1.50.0070.01717.05
7.1.00.0130.06322.40
7.0.200.0070.00016.67
7.0.140.0170.06321.94
7.0.60.0030.04719.97
7.0.50.0000.09317.86
7.0.40.0000.04720.14
7.0.30.0330.05020.09
7.0.20.0330.07720.07
7.0.10.0100.08720.33
7.0.00.0030.05720.19
5.6.280.0000.07721.06
5.6.210.0070.08020.50
5.6.200.0000.04718.18
5.6.190.0070.04320.57
5.6.180.0270.07020.57
5.6.170.0230.08020.55
5.6.160.0000.04320.56
5.6.150.0130.07318.25
5.6.140.0030.05018.15
5.6.130.0030.04318.18
5.6.120.0100.06721.00
5.6.110.0130.06320.98
5.6.100.0070.07020.96
5.6.90.0070.05720.99
5.6.80.0100.06020.46
5.6.70.0000.03720.38
5.5.350.0400.06720.29
5.5.340.0100.05718.07
5.5.330.0070.03720.46
5.5.320.0230.05320.27
5.5.310.0270.07720.26
5.5.300.0000.04017.95
5.5.290.0100.06317.96
5.5.280.0070.05020.86
5.5.270.0230.05020.89
5.5.260.0170.06720.86
5.5.250.0100.06320.57
5.5.240.3170.04020.25
5.4.450.0770.05319.34
5.4.440.0630.06719.42
5.4.430.0700.05319.18
5.4.420.0230.05719.38
5.4.410.0170.05719.44
5.4.400.0700.05719.16
5.4.390.0830.06319.15
5.4.380.0700.04719.23
5.4.370.0630.06319.14
5.4.360.0400.05718.86
5.4.350.0870.04018.86
5.4.340.0030.03812.00
5.4.320.0070.04512.48
5.4.310.0110.04012.48
5.4.300.0120.03812.48
5.4.290.0110.05112.48
5.4.280.0050.03612.38
5.4.270.0060.04012.38
5.4.260.0070.03612.38
5.4.250.0110.03612.38
5.4.240.0070.04412.38
5.4.230.0090.03512.37
5.4.220.0050.04212.37
5.4.210.0080.03212.37
5.4.200.0050.03812.37
5.4.190.0070.03512.37
5.4.180.0100.04012.37
5.4.170.0100.04312.38
5.4.160.0080.03912.38
5.4.150.0070.04712.37
5.4.140.0080.03512.05
5.4.130.0070.03512.04
5.4.120.0080.04212.00
5.4.110.0040.03812.00
5.4.100.0090.04111.99
5.4.90.0060.04711.99
5.4.80.0060.03912.00
5.4.70.0060.03811.99
5.4.60.0020.04411.99
5.4.50.0090.03211.99
5.4.40.0070.03311.98
5.4.30.0030.03711.98
5.4.20.0040.03711.98
5.4.10.0050.03511.98
5.4.00.0080.03411.47
5.3.290.0060.03912.80
5.3.280.0040.04112.71
5.3.270.0080.04012.72
5.3.260.0080.04512.72
5.3.250.0050.03812.72
5.3.240.0070.04112.72
5.3.230.0070.04312.71
5.3.220.0040.03812.68
5.3.210.0070.03712.68
5.3.200.0060.03612.68
5.3.190.0050.03912.68
5.3.180.0100.03912.67
5.3.170.0090.04012.67
5.3.160.0090.03312.67
5.3.150.0090.03412.68
5.3.140.0060.03812.66
5.3.130.0060.04412.66
5.3.120.0070.03812.66
5.3.110.0070.03812.66
5.3.100.0070.03712.11
5.3.90.0070.03512.09
5.3.80.0040.03712.07
5.3.70.0080.03412.07
5.3.60.0060.03812.07
5.3.50.0070.04112.01
5.3.40.0100.03212.01
5.3.30.0070.03411.97
5.3.20.0080.03311.75
5.3.10.0080.03311.72
5.3.00.0060.03611.70
5.2.170.0040.0319.21
5.2.160.0050.0299.20
5.2.150.0050.0309.20
5.2.140.0050.0309.20
5.2.130.0020.0329.17
5.2.120.0070.0379.16
5.2.110.0050.0299.17
5.2.100.0050.0289.16
5.2.90.0050.0299.16
5.2.80.0050.0309.16
5.2.70.0060.0299.16
5.2.60.0060.0299.11
5.2.50.0060.0299.08
5.2.40.0050.0289.05
5.2.30.0050.0309.04
5.2.20.0050.0349.03
5.2.10.0030.0308.94
5.2.00.0010.0338.79
5.1.60.0030.0258.08
5.1.50.0050.0248.07
5.1.40.0030.0268.06
5.1.30.0050.0268.41
5.1.20.0080.0228.43
5.1.10.0040.0258.15
5.1.00.0040.0258.15
5.0.50.0030.0206.63
5.0.40.0060.0166.49
5.0.30.0060.0286.30
5.0.20.0050.0176.27
5.0.10.0030.0206.25
5.0.00.0050.0296.25
4.4.90.0030.0154.78
4.4.80.0050.0234.75
4.4.70.0040.0144.76
4.4.60.0030.0154.75
4.4.50.0030.0154.77
4.4.40.0030.0264.71
4.4.30.0020.0164.76
4.4.20.0050.0144.84
4.4.10.0050.0144.85
4.4.00.0040.0244.76
4.3.110.0040.0234.67
4.3.100.0070.0104.66
4.3.90.0040.0144.63
4.3.80.0040.0244.58
4.3.70.0020.0164.63
4.3.60.0050.0124.63
4.3.50.0020.0174.63
4.3.40.0050.0224.54
4.3.30.0040.0153.29
4.3.20.0020.0163.27
4.3.10.0000.0183.23
4.3.00.0100.0276.83