3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $date = DateTime::createFromFormat("Y-m-d H:i:s", '2017-07-04 16:26:43'); echo $date;
based on jsgXb

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.00.0000.01019.45
7.1.100.0030.00818.20
7.1.70.0360.01115.28
7.1.60.0420.00633.14
7.1.50.0400.01033.07
7.1.40.0410.01432.61
7.1.30.0380.01632.73
7.1.20.0370.02232.82
7.1.10.0200.00614.91
7.1.00.0160.01214.94
7.0.200.0210.00914.95
7.0.190.0200.00715.01
7.0.180.0190.01014.60
7.0.170.0290.01014.63
7.0.160.0270.01014.39
7.0.150.0350.00814.49
7.0.140.0260.01414.77
7.0.130.2040.00614.58
7.0.120.0220.00714.64
7.0.110.0140.01314.41
7.0.100.0220.00914.45
7.0.90.0280.01514.66
7.0.80.0270.00314.48
7.0.70.0230.01314.44
7.0.60.0180.00614.37
7.0.50.0210.00814.57
7.0.40.0230.00314.39
7.0.30.0250.01314.52
7.0.20.0150.01214.60
7.0.10.0300.01214.48
7.0.00.0030.01614.48
hhvm-3.15.40.0840.20285.86
5.6.300.0130.08120.77
5.6.290.0160.08221.00
5.6.280.0160.07020.95
5.6.270.0070.06220.93
5.6.260.0090.07720.97
5.6.250.0080.07420.95
5.6.240.0070.08420.75
5.6.230.0190.07320.76
5.6.220.0100.06320.93
5.6.210.0130.05720.52
5.6.200.0090.06520.75
5.6.190.0180.07120.71
5.6.180.0080.07520.82
5.6.170.0130.07720.98
5.6.160.0160.07220.88
5.6.150.0230.06820.71
5.6.140.0100.07820.86
5.6.130.0160.07120.74
5.6.120.0060.06920.74
5.6.110.0220.06520.68
5.6.100.0130.07720.67
5.6.90.0160.06720.96
5.6.80.0280.05620.11
5.6.70.0080.06920.20
5.6.60.0150.06820.12
5.6.50.0150.06020.11
5.6.40.0030.07720.34
5.6.30.0140.07820.26
5.6.20.0060.07520.23
5.6.10.0050.07920.07
5.6.00.0090.06220.06