3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a =2; $b= $a++ + --$a ; echo $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.0240.00498.97
7.3.0rc30.0110.00716.56
7.3.0beta10.0190.00412.30
7.1.200.0060.00615.40
7.1.70.0060.00317.17
7.1.60.0120.01219.82
7.1.50.0140.00716.93
7.1.00.0000.07722.27
7.0.200.0030.00316.62
7.0.140.0000.07721.99
7.0.60.0200.06319.77
7.0.50.0000.05017.77
7.0.40.0030.04320.10
7.0.30.0330.07720.16
7.0.20.0270.07320.16
7.0.10.0100.06020.16
7.0.00.0070.04020.30
5.6.280.0030.07320.98
5.6.210.0130.08020.70
5.6.200.0130.05018.15
5.6.190.0100.08320.57
5.6.180.3370.04320.41
5.6.170.0200.04320.50
5.6.160.0000.04320.33
5.6.150.0070.04318.21
5.6.140.0070.04318.18
5.6.130.0000.05318.16
5.6.120.0070.08320.99
5.6.110.0030.09021.10
5.6.100.0030.08721.12
5.6.90.0100.07020.97
5.6.80.0030.04320.50
5.6.70.4430.03720.33
5.5.350.0030.08720.31
5.5.340.0130.05017.89
5.5.330.0100.08020.40
5.5.320.3330.04720.17
5.5.310.0170.06020.34
5.5.300.0070.08717.91
5.5.290.0070.03717.95
5.5.280.0100.05020.64
5.5.270.0030.04720.86
5.5.260.0130.07020.74
5.5.250.0100.07720.45
5.5.240.0300.06320.18
5.4.450.0130.05719.33
5.4.440.0570.07019.37
5.4.430.0870.07019.54
5.4.420.0100.06319.25
5.4.410.0870.07018.95
5.4.400.0600.06319.22
5.4.390.0800.05318.76
5.4.380.0270.05718.56
5.4.370.0200.05018.50
5.4.360.0130.05318.68
5.4.350.0130.05718.65
5.4.340.0270.04318.72
5.4.320.0100.03912.45
5.4.310.0060.03812.45
5.4.300.0080.04312.45
5.4.290.0070.03712.45
5.4.280.0060.03612.35
5.4.270.0050.04212.34
5.4.260.0060.04012.35
5.4.250.0070.03512.34
5.4.240.0060.04112.35
5.4.230.0070.04512.34
5.4.220.0070.04212.34
5.4.210.0040.03612.34
5.4.200.0060.03612.34
5.4.190.0030.03912.34
5.4.180.0060.04112.33
5.4.170.0190.03812.33
5.4.160.0160.04412.32
5.4.150.0210.03812.32
5.4.140.0260.09212.00
5.4.130.0150.04311.99
5.4.120.0170.04111.95
5.4.110.0170.04011.95
5.4.100.0150.04211.94
5.4.90.0170.04011.95
5.4.80.0150.04211.94
5.4.70.0170.03911.95
5.4.60.0130.04311.94
5.4.50.0170.03911.94
5.4.40.0130.04211.93
5.4.30.0160.04111.93
5.4.20.0260.06011.93
5.4.10.0130.04311.93
5.4.00.0170.03811.41
5.3.290.0060.03912.80
5.3.280.0110.04312.71
5.3.270.0180.04212.73
5.3.260.0400.08012.72
5.3.250.0200.03912.72
5.3.240.0130.04612.72
5.3.230.0180.04312.71
5.3.220.0120.04712.68
5.3.210.0200.04012.68
5.3.200.0170.04112.68
5.3.190.0150.04612.68
5.3.180.0170.04212.67
5.3.170.0160.04412.66
5.3.160.0140.04612.68
5.3.150.0170.04412.68
5.3.140.0150.04412.66
5.3.130.0160.04412.66
5.3.120.0300.09012.65
5.3.110.0140.04612.66
5.3.100.0120.04712.12
5.3.90.0280.06012.09
5.3.80.0190.04012.07
5.3.70.0210.04012.07
5.3.60.0170.04212.06
5.3.50.0170.04112.00
5.3.40.0180.04112.00
5.3.30.0370.05311.95
5.3.20.0150.04211.72
5.3.10.0160.04111.68
5.3.00.0110.04511.66
5.2.170.0150.0339.18
5.2.160.0160.0309.18
5.2.150.0110.0369.18
5.2.140.0100.0379.18
5.2.130.0250.0549.14
5.2.120.0140.0329.13
5.2.110.0170.0329.14
5.2.100.0130.0349.14
5.2.90.0120.0359.13
5.2.80.0140.0329.12
5.2.70.0120.0409.13
5.2.60.0140.0339.08
5.2.50.0100.0369.05
5.2.40.0190.0609.02
5.2.30.0150.0318.99
5.2.20.0140.0339.00
5.2.10.0140.0328.92
5.2.00.0140.0308.78
5.1.60.0090.0308.07
5.1.50.0130.0278.06
5.1.40.0090.0308.05
5.1.30.0130.0298.39
5.1.20.0120.0308.43
5.1.10.0160.0568.14
5.1.00.0120.0298.14
5.0.50.0110.0226.62
5.0.40.0090.0236.48
5.0.30.0140.0296.30
5.0.20.0170.0446.27
5.0.10.0100.0206.24
5.0.00.0080.0356.23
4.4.90.0060.0184.78
4.4.80.0070.0174.76
4.4.70.0080.0174.75
4.4.60.0070.0184.75
4.4.50.0060.0194.77
4.4.40.0090.0264.71
4.4.30.0070.0184.76
4.4.20.0080.0174.84
4.4.10.0100.0154.85
4.4.00.0090.0564.76
4.3.110.0060.0214.67
4.3.100.0080.0194.67
4.3.90.0070.0174.63
4.3.80.0050.0304.59
4.3.70.0090.0164.63
4.3.60.0100.0144.63
4.3.50.0070.0174.63
4.3.40.0060.0284.54
4.3.30.0040.0193.30
4.3.20.0060.0173.29
4.3.10.0040.0213.25
4.3.00.0000.0307.14