3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = "hello"; $a++; echo $a;

Here you find the average performance (time & memory) of each version. A greyed 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.10.0510.01017.85
7.2.00.0620.01217.88
7.1.130.0370.00816.73
7.1.120.0370.00716.52
7.1.110.0380.00915.90
7.1.100.0400.00716.02
7.1.90.0530.00615.90
7.1.80.0310.00615.74
7.1.70.0260.00815.27
7.1.60.0390.01133.15
7.1.50.0330.01032.75
7.1.40.0360.00932.46
7.1.30.0370.01232.52
7.1.20.0410.01232.62
7.1.10.0160.01214.62
7.1.00.0180.01214.64
7.0.270.0340.00816.46
7.0.260.0390.00916.35
7.0.250.0440.00915.69
7.0.240.0310.01115.58
7.0.230.0370.01015.44
7.0.220.0430.00815.66
7.0.210.0250.00814.62
7.0.200.0340.00814.80
7.0.190.0410.01114.67
7.0.180.0230.00914.27
7.0.170.0170.00914.32
7.0.160.0350.00514.43
7.0.150.0250.00914.34
7.0.140.0200.01114.45
7.0.130.0160.00614.52
7.0.120.0180.00814.69
7.0.110.0270.01014.53
7.0.100.0220.01114.33
7.0.90.0130.00914.31
7.0.80.0230.00514.39
7.0.70.0120.01614.37
7.0.60.0170.00914.14
7.0.50.0150.01114.44
7.0.40.0130.00914.55
7.0.30.0220.01114.52
7.0.20.0200.00714.55
7.0.10.0170.01014.52
7.0.00.0150.01114.52
hhvm-3.22.00.0820.16490.08
hhvm-3.21.30.0670.15989.37
hhvm-3.21.00.0910.16888.81
hhvm-3.20.20.0910.16189.49
hhvm-3.19.20.0960.17488.51
hhvm-3.18.50.0590.17187.48
hhvm-3.18.40.0850.19587.00
hhvm-3.17.30.0720.16886.35
hhvm-3.15.40.0790.17684.34
hhvm-3.13.20.0820.17195.52
hhvm-3.12.140.1070.19894.02
hhvm-3.11.10.0920.18086.43
hhvm-3.10.10.0970.17683.73
5.6.300.0140.06420.77
5.6.290.0150.05620.73
5.6.280.0110.06620.74
5.6.270.0160.05620.77
5.6.260.0140.05420.88
5.6.250.0120.06020.83
5.6.240.0160.05620.76
5.6.230.0090.06320.86
5.6.220.0190.06020.77
5.6.210.0210.05220.72
5.6.200.0120.05720.78
5.6.190.0100.06620.75
5.6.180.0140.06120.94
5.6.170.0150.05820.86
5.6.160.0120.06120.89
5.6.150.0190.06020.79
5.6.140.0190.05820.77
5.6.130.0140.05720.80
5.6.120.0070.07120.74
5.6.110.0170.07020.93
5.6.100.0110.07020.72
5.6.90.0140.06220.85
5.6.80.0150.05420.19
5.6.70.0130.05420.23
5.6.60.0160.06920.11
5.6.50.0070.05920.22
5.6.40.0160.05020.07
5.6.30.0140.05520.17
5.6.20.0120.05820.10
5.6.10.0160.05120.03
5.6.00.0130.05220.21
5.5.380.0090.05817.41
5.5.370.0090.05717.44
5.5.360.0100.06117.49
5.5.350.0140.05117.44
5.5.340.0080.05917.90
5.5.330.0070.06717.88
5.5.320.0130.06517.97
5.5.310.0150.05917.88
5.5.300.0160.06017.95
5.5.290.0160.05617.97
5.5.280.0100.06717.81
5.5.270.0100.06117.86
5.5.260.0080.07018.01
5.5.250.0120.05517.86
5.5.240.0140.05717.27
5.5.230.0130.05617.18
5.5.220.0120.06117.33
5.5.210.0120.05417.29
5.5.200.0110.05417.26
5.5.190.0100.05817.35
5.5.180.0110.05317.08
5.5.160.0120.05217.30
5.5.150.0130.05717.27
5.5.140.0130.05017.34
5.5.130.0110.05617.21
5.5.120.0110.05117.22
5.5.110.0140.04817.32
5.5.100.0110.06017.27
5.5.90.0160.05217.16
5.5.80.0120.05517.21
5.5.70.0080.05817.06
5.5.60.0070.05317.28
5.5.50.0140.05017.14
5.5.40.0100.05217.11
5.5.30.0140.05817.18
5.5.20.0130.05217.15
5.5.10.0180.05517.17
5.5.00.0100.05817.23
5.4.450.0160.06519.12
5.4.440.0130.06419.30
5.4.430.0160.05419.18
5.4.420.0100.05919.31
5.4.410.0070.05919.20
5.4.400.0110.05919.08
5.4.390.0110.06418.90
5.4.380.0090.05618.92
5.4.370.0120.05518.96
5.4.360.0140.05319.02
5.4.350.0110.05318.95
5.4.340.0140.05718.97
5.4.320.0100.06419.00
5.4.310.0130.04918.93
5.4.300.0130.05018.92
5.4.290.0140.05418.92
5.4.280.0070.05818.90
5.4.270.0130.05618.85
5.4.260.0120.05718.97
5.4.250.0110.05318.94
5.4.240.0140.05819.02
5.4.230.0040.05718.96
5.4.220.0090.05418.87
5.4.210.0130.05318.90
5.4.200.0100.05418.96
5.4.190.0120.05918.89
5.4.180.0140.05218.98
5.4.170.0110.05218.84
5.4.160.0120.05318.89
5.4.150.0120.05418.97
5.4.140.0140.05216.47
5.4.130.0140.04616.41
5.4.120.0060.06316.57
5.4.110.0140.05216.46
5.4.100.0120.05016.49
5.4.90.0110.05416.45
5.4.80.0110.04816.42
5.4.70.0140.04616.54
5.4.60.0130.05216.51
5.4.50.0060.05416.53
5.4.40.0140.04816.53
5.4.30.0150.05016.49
5.4.20.0080.05216.48
5.4.10.0100.05216.53
5.4.00.0090.05415.85
5.3.290.0140.05114.60
5.3.280.0100.05114.66
5.3.270.0100.06214.57
5.3.260.0120.05314.58
5.3.250.0040.05614.68
5.3.240.0160.05214.70
5.3.230.0140.05014.70
5.3.220.0170.05514.62
5.3.210.0130.05314.66
5.3.200.0170.04814.74
5.3.190.0110.05414.57
5.3.180.0130.05014.65
5.3.170.0130.04914.41
5.3.160.0120.05214.63
5.3.150.0090.05814.56
5.3.140.0170.05214.52
5.3.130.0110.05914.59
5.3.120.0130.05414.60
5.3.110.0140.05414.60
5.3.100.0090.05014.12
5.3.90.0110.04914.05
5.3.80.0120.05514.09
5.3.70.0130.04714.09
5.3.60.0090.05214.03
5.3.50.0120.04513.99
5.3.40.0120.04914.02
5.3.30.0090.04913.93
5.3.20.0130.05013.74
5.3.10.0110.05413.70
5.3.00.0110.04613.60
5.2.170.0070.04711.25
5.2.160.0110.04011.17
5.2.150.0080.04111.24
5.2.140.0070.04511.21
5.2.130.0120.03511.15
5.2.120.0090.03811.25
5.2.110.0090.04011.16
5.2.100.0050.04511.24
5.2.90.0080.03911.22
5.2.80.0100.04211.05
5.2.70.0060.04311.04
5.2.60.0120.03611.19
5.2.50.0090.03911.09
5.2.40.0090.03811.12
5.2.30.0130.03810.94
5.2.20.0080.03811.00
5.2.10.0080.03711.05
5.2.00.0110.03410.90
5.1.60.0110.03210.02
5.1.50.0090.03410.13
5.1.40.0060.03510.21
5.1.30.0070.03510.45
5.1.20.0020.04010.42
5.1.10.0130.03110.10
5.1.00.0070.03810.30
5.0.50.0070.0279.23
5.0.40.0020.0299.23
5.0.30.0080.0409.23
5.0.20.0050.0279.23
5.0.10.0060.0259.23
5.0.00.0030.0429.23
4.4.90.0050.0239.23
4.4.80.0040.0229.23
4.4.70.0040.0229.23
4.4.60.0040.0249.23
4.4.50.0040.0239.23
4.4.40.0050.0339.23
4.4.30.0050.0219.23
4.4.20.0030.0249.23
4.4.10.0020.0259.23
4.4.00.0060.0319.23
4.3.110.0040.0239.23
4.3.100.0040.0219.23
4.3.90.0030.0219.23
4.3.80.0030.0339.23
4.3.70.0060.0189.23
4.3.60.0030.0219.23
4.3.50.0070.0189.23
4.3.40.0020.0339.23
4.3.30.0020.0229.23
4.3.20.0060.0189.23
4.3.10.0030.0219.23
4.3.00.0000.0249.23