3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = 1; $c = $a + ($a++); var_dump($c);

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.0140.00798.97
7.3.0rc30.0950.00716.37
7.3.0beta10.0060.00312.56
7.3.0alpha10.0030.00312.43
7.2.60.0120.00316.85
7.2.00.0030.01019.36
7.1.200.0160.00615.72
7.1.100.0140.00018.16
7.1.70.0000.00817.27
7.1.60.0110.01419.70
7.1.50.0060.01216.85
7.1.00.0000.08022.29
7.0.200.0030.00716.82
7.0.140.0030.07721.98
7.0.60.0070.08020.03
7.0.50.0070.08017.70
7.0.40.0100.08320.40
7.0.30.0200.04320.16
7.0.20.0470.07720.16
7.0.10.0000.05020.08
7.0.00.0100.07020.18
5.6.280.0030.07321.14
5.6.210.0070.04720.61
5.6.200.0170.04318.20
5.6.190.0070.08320.35
5.6.180.0330.07020.56
5.6.170.0170.04320.40
5.6.160.0070.07320.49
5.6.150.0030.04018.12
5.6.140.0100.08018.11
5.6.130.0030.04018.21
5.6.120.0100.05021.12
5.6.110.0070.04020.97
5.6.100.0030.06021.02
5.6.90.0070.08320.97
5.6.80.0100.07320.38
5.5.350.4300.03320.31
5.5.340.0070.03717.89
5.5.330.0100.06720.25
5.5.320.0700.04020.19
5.5.310.0330.08020.34
5.5.300.0070.07717.88
5.5.290.0030.06017.91
5.5.280.0100.07020.88
5.5.270.0070.08720.79
5.5.260.0000.06020.86
5.5.250.0170.07720.68
5.5.240.0130.07320.02
5.4.450.0430.06719.40
5.4.440.0500.06319.21
5.4.430.0430.05019.13
5.4.420.0500.06319.55
5.4.410.0500.06319.01
5.4.400.0470.04319.16
5.4.390.0400.05719.25
5.4.380.0470.03719.08
5.4.370.0470.07319.09
5.4.360.0470.06719.21
5.4.350.0570.06019.12
5.4.340.0500.04319.06
5.4.320.0430.04019.13
5.4.310.0400.06019.24
5.4.300.0430.04018.77
5.4.290.0470.05719.09
5.4.280.0470.04718.88
5.4.270.0400.03319.15
5.4.260.0400.06019.24
5.4.250.0300.04719.11
5.4.240.0530.06019.12
5.4.230.0270.04019.09
5.4.220.0300.06018.79
5.4.210.0330.03719.08
5.4.200.0300.04019.02
5.4.190.0430.06719.15
5.4.180.0330.03718.81
5.4.170.0400.06319.14
5.4.160.0370.05019.14
5.4.150.0430.02719.22
5.4.140.0370.05716.29
5.4.130.0400.03316.16
5.4.120.0500.04016.32
5.4.110.0500.05716.06
5.4.100.0430.07316.49
5.4.90.0500.06316.18
5.4.80.0530.05716.41
5.4.70.0430.03716.39
5.4.60.0530.06316.43
5.4.50.0400.05316.20
5.4.40.0500.05316.36
5.4.30.0400.03316.43
5.4.20.0330.03716.20
5.4.10.0370.04716.31
5.4.00.0430.06715.82
5.3.290.0400.05014.64
5.3.280.0470.07014.68
5.3.270.0430.05314.64
5.3.260.0400.05314.64
5.3.250.0500.06314.45
5.3.240.0530.06014.55
5.3.230.0500.04014.43
5.3.220.0430.03014.40
5.3.210.0470.06714.43
5.3.200.0430.06714.52
5.3.190.0430.03714.50
5.3.180.0370.03714.61
5.3.170.0470.05714.65
5.3.160.0430.07014.51
5.3.150.0470.06314.65
5.3.140.0630.03314.45
5.3.130.0500.07014.39
5.3.120.0430.03714.39
5.3.110.0430.04714.55
5.3.100.0430.04713.98
5.3.90.0430.05013.86
5.3.80.0400.03313.88
5.3.70.0470.04713.86
5.3.60.0470.05313.90
5.3.50.0430.03313.95
5.3.40.0370.03313.74
5.3.30.0400.05013.76
5.3.20.0500.02713.62
5.3.10.0500.05713.54
5.3.00.0470.06013.60
5.2.170.0400.06012.45
5.2.160.0470.05012.45
5.2.150.0330.03712.45
5.2.140.0300.03012.45
5.2.130.0470.05312.45
5.2.120.0430.04712.45
5.2.110.0400.04312.45
5.2.100.0300.03012.45
5.2.90.0370.03712.45
5.2.80.0300.03012.45
5.2.70.0270.03312.45
5.2.60.0370.04312.45
5.2.50.0400.03012.45
5.2.40.0230.03012.45
5.2.30.0200.03312.45
5.2.20.0200.03312.45
5.2.10.0270.04312.45
5.2.00.0300.05012.45
5.1.60.0270.02312.45
5.1.50.0170.03312.45
5.1.40.0300.01712.45
5.1.30.0370.04312.45
5.1.20.0230.03012.45
5.1.10.0330.04712.45
5.1.00.0230.03012.45
5.0.50.0130.03312.45
5.0.40.0170.03312.45
5.0.30.0130.04012.45
5.0.20.0170.02712.45
5.0.10.0200.03012.45
5.0.00.0170.04712.45
4.4.90.0170.01712.45
4.4.80.0170.01312.45
4.4.70.0100.01712.45
4.4.60.0030.02012.45
4.4.50.0070.01312.45
4.4.40.0100.02712.45
4.4.30.0100.03012.45
4.4.20.0000.02312.45
4.4.10.0070.01312.45
4.4.00.0070.02312.45
4.3.110.0030.01712.45
4.3.100.0030.01712.45
4.3.90.0030.01712.45
4.3.80.0100.02012.45
4.3.70.0100.01712.45
4.3.60.0170.02012.45
4.3.50.0100.01712.45
4.3.40.0130.02312.45
4.3.30.0100.03012.45
4.3.20.0100.03012.45
4.3.10.0070.02712.45
4.3.00.0070.02712.45