3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = time(); $b = $a - 1000; $c = $b > time() ? 1 : 2; 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.0170.00698.97
7.3.0rc30.0190.00316.20
7.3.0beta10.0030.00612.57
7.3.0alpha10.0030.00512.82
7.2.60.0090.00316.86
7.2.00.0060.00919.28
7.1.200.0040.01115.72
7.1.100.0030.00618.07
7.1.70.0000.00716.89
7.1.60.0090.01519.82
7.1.50.0000.01816.87
7.1.00.0030.07722.40
7.0.200.0060.01216.46
7.0.140.0100.07021.96
7.0.80.0770.05319.94
7.0.70.0530.08319.91
7.0.60.0600.07719.87
7.0.50.0530.06320.25
7.0.40.0030.08719.95
7.0.30.0070.07720.19
7.0.20.0100.08019.95
7.0.10.0130.07720.13
7.0.00.0070.04020.18
5.6.280.0030.07321.14
5.6.230.0030.05720.56
5.6.220.0070.08020.67
5.6.210.0130.08320.60
5.6.200.0130.07321.11
5.6.190.0070.08320.96
5.6.180.0230.04721.11
5.6.170.0030.06721.07
5.6.160.0030.05720.88
5.6.150.0100.05321.13
5.6.140.0070.08021.02
5.6.130.0170.07720.94
5.6.120.0000.09021.13
5.6.110.0100.08021.02
5.6.100.0100.08021.06
5.6.90.0070.08320.99
5.6.80.0130.06320.31
5.6.70.0030.06720.40
5.6.60.0070.04020.42
5.6.50.0100.07720.49
5.6.40.0170.05720.43
5.6.30.0100.04020.41
5.6.20.0030.08320.52
5.6.10.0030.08320.30
5.6.00.0100.07320.29
5.5.370.0130.07020.37
5.5.360.0070.06720.43
5.5.350.0170.07320.39
5.5.340.0130.07720.85
5.5.330.0070.08320.82
5.5.320.0030.04320.85
5.5.310.0030.09320.83
5.5.300.0130.07020.91
5.5.290.0230.07020.72
5.5.280.0230.07020.75
5.5.270.0200.06320.75
5.5.260.0070.08320.81
5.5.250.0100.07320.73
5.5.240.0070.08020.16
5.5.230.0100.07320.25
5.5.220.0230.06020.26
5.5.210.0130.07720.23
5.5.200.0070.07720.18
5.5.190.0030.04720.07
5.5.180.0130.03720.14
5.5.160.0170.07320.27
5.5.150.0100.07720.27
5.5.140.0030.08020.23
5.5.130.0070.08020.22
5.5.120.0070.08020.24
5.5.110.0100.04320.11
5.5.100.0070.06020.07
5.5.90.0070.07320.12
5.5.80.0070.08320.10
5.5.70.0070.07720.05
5.5.60.0130.05020.14
5.5.50.0130.07320.14
5.5.40.0100.08019.99
5.5.30.0130.06720.06
5.5.20.0000.05020.04
5.5.10.0070.07720.02
5.5.00.0030.08019.99
5.4.450.0130.07719.35
5.4.440.0070.07319.38
5.4.430.0000.05319.35
5.4.420.0130.04019.35
5.4.410.0070.08319.18
5.4.400.0100.07718.95
5.4.390.0030.08319.03
5.4.380.0030.04719.07
5.4.370.0100.05318.79
5.4.360.0070.07719.00
5.4.350.0100.06718.96
5.4.340.0100.07719.11
5.4.320.0070.07318.96
5.4.310.0070.07719.03
5.4.300.0130.03719.09
5.4.290.0070.08018.98
5.4.280.0030.04719.09
5.4.270.0070.07318.78
5.4.260.0100.06319.05
5.4.250.0100.06718.80
5.4.240.0100.06718.95
5.4.230.0030.08019.09
5.4.220.0070.07718.78
5.4.210.0030.08018.97
5.4.200.0100.07318.97
5.4.190.0100.07318.95
5.4.180.0070.07019.22
5.4.170.0200.06019.02
5.4.160.0000.07319.01
5.4.150.0030.05318.98
5.4.140.0100.07016.33
5.4.130.0100.06316.28
5.4.120.0070.07016.36
5.4.110.0170.06316.26
5.4.100.0030.08016.22
5.4.90.0030.07716.26
5.4.80.0030.05016.41
5.4.70.0000.07016.20
5.4.60.0100.06316.32
5.4.50.0030.07716.13
5.4.40.0170.06016.35
5.4.30.0100.06716.39
5.4.20.0130.06716.17
5.4.10.0170.07016.17
5.4.00.0030.07715.87
5.3.290.0100.07014.64
5.3.280.0130.07014.54
5.3.270.0000.06014.56
5.3.260.0100.07314.60
5.3.250.0070.05014.59
5.3.240.0130.07014.56
5.3.230.0170.05014.55
5.3.220.0030.06714.44
5.3.210.0070.07714.55
5.3.200.0030.06014.47
5.3.190.0100.08014.51
5.3.180.0070.07714.55
5.3.170.0130.06714.44
5.3.160.0130.05314.57
5.3.150.0070.07314.54
5.3.140.0030.07314.54
5.3.130.0030.06014.52
5.3.120.0000.07014.52
5.3.110.0030.07714.55
5.3.100.0030.06314.02
5.3.90.0100.07713.99
5.3.80.0100.07013.87
5.3.70.0070.06713.96
5.3.60.0070.07314.02
5.3.50.0130.07013.88
5.3.40.0030.08013.91
5.3.30.0070.06013.85
5.3.20.0070.07013.54
5.3.10.0070.04713.51
5.3.00.0030.07313.58