3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(new DateTime('today') < new DateTime('yesterday')); var_dump(new DateTime('today - 20 weeks') < new DateTime('yesterday')); var_dump(new DateTime('today - 20 weeks') < new stdClass);
based on gpv1G

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.10.0130.00816.50
7.3.00.0120.01016.29
7.2.130.0080.00616.38
7.2.120.0120.00016.63
7.2.110.0130.00716.58
7.2.100.0150.00316.67
7.2.90.0200.00516.84
7.2.80.0200.00616.59
7.2.70.0180.01216.60
7.2.60.0130.00916.93
7.2.50.0220.00716.76
7.2.40.0220.00816.93
7.2.30.0250.00016.52
7.2.20.0240.00016.70
7.2.10.0210.00616.79
7.2.00.0080.01018.29
7.1.250.0110.00715.40
7.1.100.0030.00718.22
7.1.70.0040.01217.36
7.1.60.0090.01319.46
7.1.50.0060.01517.05
7.1.00.0030.07722.43
7.0.200.0060.00616.82
7.0.140.0000.06722.18
7.0.60.0230.04719.92
7.0.50.0070.05317.92
7.0.40.0130.03320.24
7.0.30.0230.03320.17
7.0.20.0200.07720.01
7.0.10.0030.06020.12
7.0.00.0070.08720.28
5.6.280.0030.07321.07
5.6.210.0100.08020.50
5.6.200.0030.07318.13
5.6.190.0030.04320.33
5.6.180.4100.04720.41
5.6.170.0170.04320.62
5.6.160.0070.06720.51
5.6.150.0000.05718.12
5.6.140.0030.05318.18
5.6.130.0070.08018.15
5.6.120.0030.05721.00
5.6.110.0070.03721.07
5.6.100.0070.08320.96
5.6.90.0130.07721.11
5.6.80.0030.07320.35
5.6.70.3800.03720.39
5.5.350.0270.03320.48
5.5.340.0070.05317.92
5.5.330.0030.05020.37
5.5.320.0270.04020.32
5.5.310.0300.05320.24
5.5.300.0030.04017.95
5.5.290.0070.08017.95
5.5.280.0170.07320.79
5.5.270.0130.07720.86
5.5.260.0070.04720.95
5.5.250.0100.03320.68
5.5.240.0130.03320.18
5.4.450.0500.06019.55
5.4.440.0970.05319.55
5.4.430.0930.05319.24
5.4.420.1870.06019.32
5.4.410.0900.05719.02
5.4.400.0800.06718.92
5.4.390.0270.05018.78
5.4.380.0270.06018.68
5.4.370.0200.05718.74
5.4.360.0200.05318.70
5.4.350.0130.06318.73
5.4.340.0330.06018.73
5.4.320.0170.06318.52
5.4.310.0170.05318.68
5.4.300.0230.04718.64
5.4.290.0200.05318.68
5.4.280.0170.05318.69
5.4.270.0100.06318.45
5.4.260.0230.04718.52
5.4.250.0130.06018.76
5.4.240.0270.04718.60
5.4.230.0170.05318.71
5.4.220.0170.05718.71
5.4.210.0270.05018.66
5.4.200.0200.05316.41
5.4.190.0230.05018.49
5.4.180.0230.05018.51
5.4.170.0430.05318.69
5.4.160.0230.06318.68
5.4.150.0300.04318.75
5.4.140.0170.05016.22
5.4.130.0070.06016.07
5.4.120.0130.05716.29
5.4.110.0230.04316.41
5.4.100.0130.05316.39
5.4.90.0170.05316.21
5.4.80.0170.05316.17
5.4.70.0130.05716.19
5.4.60.0300.03716.14
5.4.50.0270.04016.16
5.4.40.0200.05016.28
5.4.30.0200.04716.26
5.4.20.0100.05716.15
5.4.10.0170.05716.00
5.4.00.0200.04715.53
5.3.290.0230.05014.66
5.3.280.0130.06714.64
5.3.270.0170.05714.58
5.3.260.0200.05314.60
5.3.250.0130.05714.55
5.3.240.0300.04014.59
5.3.230.0230.04714.60
5.3.220.0170.05314.57
5.3.210.0230.05014.66
5.3.200.0230.05014.54
5.3.190.0200.05014.54
5.3.180.0130.05314.56
5.3.170.0130.06014.63
5.3.160.0200.05014.51
5.3.150.0230.05014.59
5.3.140.0300.04314.59
5.3.130.0170.06014.62
5.3.120.0270.04714.59
5.3.110.0130.06014.54
5.3.100.0200.05014.08
5.3.90.0170.05013.93
5.3.80.0330.04314.01
5.3.70.0130.05714.00
5.3.60.0230.04713.89
5.3.50.0170.05713.99
5.3.40.0200.05313.89
5.3.30.0100.06013.89
5.3.20.0070.06013.64
5.3.10.0170.05013.56
5.3.00.0230.06013.63
5.2.170.0230.03311.09
5.2.160.0130.04311.20
5.2.150.0200.04011.12
5.2.140.0170.04011.12
5.2.130.0130.04011.14
5.2.120.0170.04011.02
5.2.110.0170.03711.13
5.2.100.0100.04311.17
5.2.90.0130.04011.15
5.2.80.0100.04311.24
5.2.70.0130.04311.07
5.2.60.0170.04011.00
5.2.50.0130.04710.93
5.2.40.0170.03710.93
5.2.30.0130.05310.93
5.2.20.0200.03310.87
5.2.10.0170.03311.00
5.2.00.0130.04010.71
5.1.60.0130.03310.13
5.1.50.0130.0439.97
5.1.40.0030.04710.09
5.1.30.0170.03310.45
5.1.20.0170.03010.41
5.1.10.0100.03710.10
5.1.00.0070.04010.18
5.0.50.0170.0278.57
5.0.40.0030.0308.52
5.0.30.0030.0478.25
5.0.20.0070.0308.32
5.0.10.0100.0278.34
5.0.00.0170.0408.17
4.4.90.0100.0205.82
4.4.80.0030.0235.85
4.4.70.0100.0205.90
4.4.60.0070.0235.90
4.4.50.0030.0235.88
4.4.40.0030.0375.85
4.4.30.0030.0305.82
4.4.20.0100.0205.95
4.4.10.0100.0235.92
4.4.00.0030.0405.91
4.3.110.0070.0235.84
4.3.100.0030.0235.86
4.3.90.0030.0235.82
4.3.80.0030.0375.80
4.3.70.0030.0275.89
4.3.60.0100.0175.82
4.3.50.0070.0305.79
4.3.40.0130.0305.85
4.3.30.0030.0235.26
4.3.20.0070.0205.26
4.3.10.0070.0175.26
4.3.00.0170.0177.09