3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $variable1 = $variable2 = $variable3 = $variable4 = ''; var_dump($variable1, $variable2, $variable3, $variable4);

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.0170.00398.97
7.3.0rc30.0070.01016.59
7.2.00.0080.00819.36
7.1.100.0030.01418.25
7.1.70.0000.00717.21
7.1.60.0130.00919.46
7.1.50.0130.00016.80
7.1.00.0030.07722.48
7.0.200.0000.00716.59
7.0.140.0000.07721.99
7.0.60.0070.06019.91
7.0.50.0070.03717.85
7.0.40.0070.05019.98
7.0.30.0430.07320.11
7.0.20.0200.04020.00
7.0.10.0130.08320.30
7.0.00.0130.08020.04
5.6.280.0130.06321.03
5.6.210.0100.05720.49
5.6.200.0100.07018.11
5.6.190.0030.04320.41
5.6.180.0270.08320.41
5.6.170.0230.04020.54
5.6.160.0070.04320.49
5.6.150.0100.05318.13
5.6.140.0130.04318.11
5.6.130.0130.08018.18
5.6.120.0170.05020.98
5.6.110.0070.08320.96
5.6.100.0200.07020.95
5.6.90.0100.05021.05
5.6.80.0070.06320.53
5.5.350.0000.07020.28
5.5.340.0000.04318.01
5.5.330.0000.04720.14
5.5.320.0230.04020.31
5.5.310.0230.05020.32
5.5.300.0070.08018.02
5.5.290.0030.04017.91
5.5.280.0170.07720.84
5.5.270.0130.08020.76
5.5.260.0070.08720.71
5.5.250.0100.08320.61
5.5.240.0270.06720.27
5.4.450.0570.06319.52
5.4.440.0130.06019.62
5.4.430.0800.05719.10
5.4.420.0930.05319.54
5.4.410.0730.05719.50
5.4.400.0770.06018.81
5.4.390.0400.05019.28
5.4.380.0200.05718.70
5.4.370.0070.05018.56
5.4.360.0070.05318.57
5.4.350.0040.03611.97
5.4.340.0070.03311.97
5.4.320.0110.04012.45
5.4.310.0080.04112.45
5.4.300.0110.04312.45
5.4.290.0080.05112.45
5.4.280.0060.04812.34
5.4.270.0070.05112.35
5.4.260.0100.06812.35
5.4.250.0080.05812.34
5.4.240.0110.05512.35
5.4.230.0080.05712.34
5.4.220.0130.04712.34
5.4.210.0060.05312.34
5.4.200.0050.05412.34
5.4.190.0120.04612.34
5.4.180.0090.04812.34
5.4.170.0100.04712.35
5.4.160.0050.05112.34
5.4.150.0020.05012.34
5.4.140.0050.03812.02
5.4.130.0090.03312.01
5.4.120.0070.03811.97
5.4.110.0110.03311.96
5.4.100.0050.03611.96
5.4.90.0070.03911.96
5.4.80.0090.04411.96
5.4.70.0060.03711.96
5.4.60.0060.03811.96
5.4.50.0070.03711.96
5.4.40.0080.03611.95
5.4.30.0060.04211.95
5.4.20.0050.03811.94
5.4.10.0060.03611.95
5.4.00.0060.03711.43
5.3.290.0040.04012.80
5.3.280.0060.03912.70
5.3.270.0060.04312.72
5.3.260.0050.04312.72
5.3.250.0100.04412.72
5.3.240.0140.04412.72
5.3.230.0130.04012.71
5.3.220.0040.05612.68
5.3.210.0090.04612.68
5.3.200.0080.05312.68
5.3.190.0090.05012.68
5.3.180.0090.04812.67
5.3.170.0100.04912.67
5.3.160.0070.03912.67
5.3.150.0070.04112.67
5.3.140.0020.04212.66
5.3.130.0080.03812.66
5.3.120.0060.03912.66
5.3.110.0130.04212.65
5.3.100.0070.03812.11
5.3.90.0070.03712.09
5.3.80.0050.03812.07
5.3.70.0070.03612.07
5.3.60.0060.04112.06
5.3.50.0060.03912.00
5.3.40.0080.04212.00
5.3.30.0070.03511.94
5.3.20.0060.03711.72
5.3.10.0090.03411.69
5.3.00.0070.04411.67
5.2.170.0050.0339.18
5.2.160.0060.0289.18
5.2.150.0050.0309.18
5.2.140.0050.0309.18
5.2.130.0040.0309.14
5.2.120.0050.0349.14
5.2.110.0040.0299.14
5.2.100.0050.0409.14
5.2.90.0070.0409.14
5.2.80.0040.0449.13
5.2.70.0050.0449.13
5.2.60.0090.0439.09
5.2.50.0050.0409.05
5.2.40.0060.0279.04
5.2.30.0040.0319.00
5.2.20.0030.0309.00
5.2.10.0040.0398.92
5.2.00.0080.0388.77
5.1.60.0060.0378.06
5.1.50.0070.0358.06
5.1.40.0030.0388.04
5.1.30.0040.0338.39
5.1.20.0040.0298.41
5.1.10.0030.0278.14
5.1.00.0050.0248.13
5.0.50.0070.0176.61
5.0.40.0050.0186.48
5.0.30.0010.0346.29
5.0.20.0030.0196.26
5.0.10.0030.0206.23
5.0.00.0050.0296.23
4.4.90.0010.0174.78
4.4.80.0010.0174.75
4.4.70.0030.0154.75
4.4.60.0040.0154.75
4.4.50.0020.0174.77
4.4.40.0040.0254.71
4.4.30.0040.0154.76
4.4.20.0020.0174.84
4.4.10.0040.0154.85
4.4.00.0010.0304.76
4.3.110.0020.0184.67
4.3.100.0000.0184.67
4.3.90.0030.0154.63
4.3.80.0030.0254.59
4.3.70.0020.0154.63
4.3.60.0020.0154.62
4.3.50.0020.0174.63
4.3.40.0060.0244.54
4.3.30.0000.0193.28
4.3.20.0040.0143.26
4.3.10.0020.0163.22
4.3.00.0170.0177.45