3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php date_default_timezone_set('Europe/Minsk'); $a = new DateTimeImmutable("2015-01-01 11:00:00"); $b = $a->setTime(10, 0)->setTimezone(new DateTimeZone("03:00")); var_dump($a > $b); $a->getTimestamp(); $b->getTimestamp(); var_dump($a > $b);
based on 6QUKu

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.0090.00616.71
7.3.00.0000.01416.73
7.2.130.0070.00717.01
7.2.120.0050.00816.95
7.2.110.0090.00916.75
7.2.100.0040.00816.93
7.2.90.0040.01117.13
7.2.80.0090.00016.80
7.2.70.0060.00617.19
7.2.60.0050.01017.05
7.2.50.0040.01116.98
7.2.40.0000.01016.79
7.2.30.0060.00917.15
7.2.20.0030.01016.85
7.2.10.0000.00916.99
7.2.00.0030.00918.15
7.1.250.0040.00715.91
7.1.200.0110.00315.88
7.1.100.0100.00318.13
7.1.70.0090.00617.29
7.1.60.0000.02419.40
7.1.50.0000.02116.74
7.1.00.0030.09022.30
7.0.200.0000.01116.69
7.0.60.0100.07021.61
7.0.50.0070.08017.93
7.0.40.0100.08320.40
7.0.30.0230.07020.21
7.0.20.0230.06020.04
7.0.10.0130.08020.13
7.0.00.0230.07320.12
5.6.280.0030.03321.07
5.6.210.0030.04720.54
5.6.200.0030.04018.23
5.6.190.0130.09020.67
5.6.180.0230.09020.68
5.6.170.0170.07020.57
5.6.160.0070.08320.43
5.6.150.0100.06718.15
5.6.140.0100.08318.13
5.6.130.0070.04718.18
5.6.120.0030.09021.04
5.6.110.0170.07720.98
5.6.100.0030.05721.00
5.6.90.0070.07020.97
5.6.80.0130.07720.39
5.5.350.0200.07320.45
5.5.340.0100.05717.96
5.5.330.0030.04320.40
5.5.320.0670.07020.24
5.5.310.0300.05020.29
5.5.300.0070.06318.05
5.5.290.0070.04318.08
5.5.280.0030.05320.89
5.5.270.0070.04720.87
5.5.260.0030.04020.76
5.5.250.0070.06320.58
5.5.240.0200.05720.27
5.4.450.0230.07719.56
5.4.440.0770.05719.48
5.4.430.0270.06019.41
5.4.420.0270.06719.58
5.4.410.0270.05019.06
5.4.400.0330.06019.16
5.4.390.0270.06719.24
5.4.380.0270.05319.15
5.4.370.0270.04319.13
5.4.360.0230.05019.13
5.4.350.0300.07719.09
5.4.340.0100.06719.21
5.4.320.0230.05318.88
5.4.310.0200.07319.22
5.4.300.0270.07019.25
5.4.290.0300.04319.06
5.4.280.0170.07019.16
5.4.270.0100.05719.23
5.4.260.0170.05319.32
5.4.250.0200.05019.12
5.4.240.0200.05319.12
5.4.230.0100.05719.14
5.4.220.0100.05719.17
5.4.210.0330.04018.86
5.4.200.0070.06018.92
5.4.190.0230.05318.89
5.4.180.0300.04719.07
5.4.170.0170.05318.91
5.4.160.0230.05318.91
5.4.150.0130.05719.06
5.4.140.0200.04716.27
5.4.130.0130.05016.12
5.4.120.0170.05016.44
5.4.110.0170.05016.13
5.3.290.0300.06014.56
5.3.280.0170.05314.38
5.3.270.0100.06314.39
5.3.260.0200.05014.51
5.3.250.0230.04714.58
5.3.240.0170.05014.50
5.3.230.0130.05014.50
5.3.220.0130.05314.54
5.3.210.0200.05014.48