3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a=[1,2,3]; $b=$a; $b[0]="x"; print_r($a); print_r($b);

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.0160.00398.97
7.3.0rc30.0130.00616.43
7.3.0beta10.0040.00712.55
7.3.0alpha10.0000.01112.70
7.2.60.0040.00416.58
7.2.00.0060.00819.07
7.1.200.0040.00715.87
7.1.100.0030.00818.21
7.1.70.0000.01017.28
7.1.60.0040.01219.46
7.1.50.0120.00616.95
7.1.00.0000.08022.36
7.0.200.0000.00716.73
7.0.140.0070.07022.12
7.0.60.0030.06020.03
7.0.50.0170.07017.87
7.0.40.0030.07020.31
7.0.30.0270.07720.21
7.0.20.0300.08020.19
7.0.10.0130.08020.06
7.0.00.0130.07320.20
5.6.280.0000.07320.76
5.6.210.0070.07020.49
5.6.200.0070.06018.27
5.6.190.0070.04020.76
5.6.180.0130.08320.41
5.6.170.0170.04020.56
5.6.160.0030.09020.49
5.6.150.0000.04318.18
5.6.140.0100.06318.20
5.6.130.0130.07318.14
5.6.120.0130.07720.96
5.6.110.0030.08721.13
5.6.100.0130.08320.97
5.6.90.0000.04720.98
5.6.80.0100.07020.37
5.5.350.0030.07720.41
5.5.340.0070.07318.04
5.5.330.0070.08320.13
5.5.320.0300.07320.36
5.5.310.0400.07020.29
5.5.300.0070.04017.98
5.5.290.0170.06318.03
5.5.280.0070.04020.79
5.5.270.0030.06720.86
5.5.260.0100.07320.86
5.5.250.0100.08020.68
5.5.240.0000.06320.28
5.4.450.0930.06719.48
5.4.440.0870.06019.15
5.4.430.0730.04719.20
5.4.420.0670.06719.60
5.4.410.1100.05319.42
5.4.400.0800.05019.20
5.4.390.0870.07719.22
5.4.380.0170.06318.43
5.4.370.0400.04318.66
5.4.360.0400.05718.70
5.4.350.0500.06318.67
5.4.340.0400.04718.52
5.4.320.0060.03612.48
5.4.310.0070.04012.47
5.4.300.0050.04012.48
5.4.290.0070.03812.47
5.4.280.0080.03512.38
5.4.270.0060.03812.37
5.4.260.0060.03912.38
5.4.250.0030.04112.37
5.4.240.0070.03712.38
5.4.230.0090.04712.36
5.4.220.0080.04312.37
5.4.210.0080.03612.37
5.4.200.0040.04012.37
5.4.190.0060.03612.36
5.4.180.0060.03612.36
5.4.170.0070.03612.38
5.4.160.0060.04012.37
5.4.150.0050.04112.37
5.4.140.0070.05112.05
5.4.130.0160.04212.04
5.4.120.0100.04912.00
5.4.110.0110.04811.99
5.4.100.0110.04611.99
5.4.90.0070.05411.99
5.4.80.0080.05211.99
5.4.70.0090.05011.99
5.4.60.0130.04611.99
5.4.50.0140.04511.99
5.4.40.0120.04611.98
5.4.30.0070.04911.98
5.4.20.0080.04811.97
5.4.10.0070.04711.97
5.4.00.0070.05011.47
5.3.290.0060.04112.80
5.3.280.0070.04912.71
5.3.270.0050.04412.72
5.3.260.0050.04412.72
5.3.250.0100.04812.72
5.3.240.0070.04012.72
5.3.230.0050.04012.71
5.3.220.0080.03612.68
5.3.210.0030.04412.68
5.3.200.0080.03612.68
5.3.190.0110.03612.68
5.3.180.0090.03812.67
5.3.170.0100.03912.67
5.3.160.0040.05512.68
5.3.150.0060.05512.68
5.3.140.0050.04812.66
5.3.130.0060.04512.66
5.3.120.0030.04012.66
5.3.110.0050.04012.66
5.3.100.0090.03412.12
5.3.90.0070.03812.08
5.3.80.0060.03812.07
5.3.70.0030.03912.07
5.3.60.0040.03912.06
5.3.50.0080.04212.00
5.3.40.0060.03712.00
5.3.30.0030.03811.95
5.3.20.0050.03811.73
5.3.10.0070.04711.70
5.3.00.0050.04411.68
5.2.170.0030.0329.18
5.2.160.0030.0329.18
5.2.150.0070.0299.18
5.2.140.0040.0329.18
5.2.130.0040.0319.13
5.2.120.0080.0259.14
5.2.110.0070.0279.14
5.2.100.0050.0349.14
5.2.90.0060.0289.14
5.2.80.0050.0319.14
5.2.70.0020.0339.14
5.2.60.0030.0349.09
5.2.50.0050.0299.05
5.2.40.0030.0319.04
5.2.30.0030.0319.01
5.2.20.0030.0309.00
5.2.10.0030.0308.92
5.2.00.0070.0278.78
5.1.60.0040.0258.07
5.1.50.0060.0248.06
5.1.40.0030.0268.05
5.1.30.0030.0288.39
5.1.20.0060.0258.41
5.1.10.0050.0258.14
5.1.00.0030.0278.14
5.0.50.0020.0226.62
5.0.40.0010.0226.48
5.0.30.0030.0326.30
5.0.20.0050.0186.27
5.0.10.0020.0226.23
5.0.00.0060.0286.23
4.4.90.0010.0184.78
4.4.80.0020.0174.76
4.4.70.0020.0184.76
4.4.60.0040.0154.76
4.4.50.0020.0174.77
4.4.40.0020.0274.71
4.4.30.0020.0174.76
4.4.20.0040.0164.84
4.4.10.0030.0164.85
4.4.00.0040.0244.75
4.3.110.0010.0184.67
4.3.100.0030.0154.67
4.3.90.0040.0144.64
4.3.80.0020.0264.58
4.3.70.0030.0154.63
4.3.60.0040.0144.63
4.3.50.0040.0134.63
4.3.40.0030.0254.54
4.3.30.0030.0213.29
4.3.20.0050.0183.26
4.3.10.0010.0193.22
4.3.00.0200.0237.40