3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo (new DateTime('+300s'))->format('Ymd His');
based on o3QiK
Output for 5.6.28, 7.0.20 - 7.2.0
20151229 012921
Output for 7.0.6
20160521 130753
Output for 7.0.5
20160403 091135
Output for 7.0.4
20160310 211731
Output for 7.0.3
20160318 223938
Output for 7.0.2
20160323 045305
Output for 7.0.1
20160324 080147
Output for 7.0.0
20160327 095508
Output for 5.6.21
20160502 160405
Output for 5.6.20
20160410 081322
Output for 5.6.19
20160308 052502
Output for 5.6.18
20160315 142101
Output for 5.6.17
20160320 015309
Output for 5.6.16
20160328 104439
Output for 5.6.15
20160329 113337
Output for 5.6.14
20160414 171601
Output for 5.6.13
20160415 175458
Output for 5.6.12
20160420 082403
Output for 5.6.11
20160424 144944
Output for 5.6.10
20160425 165524
Output for 5.6.9
20160427 221247
Output for 5.6.8
20160430 065223
Output for 5.5.35
20160523 013933
Output for 5.5.34
20160411 102655
Output for 5.5.33
20160309 082409
Output for 5.5.32
20160317 181657
Output for 5.5.31
20160321 050142
Output for 5.5.30
20160401 132603
Output for 5.5.29
20160417 081256
Output for 5.5.28
20160421 114217
Output for 5.5.27
20160422 132141
Output for 5.5.26
20160426 193601
Output for 5.5.25
20160429 030011
Output for 5.5.24
20160524 092530
Output for 5.4.44 - 5.4.45
20151229 012924
Output for 5.4.42 - 5.4.43
20151229 012925
Output for 5.4.39 - 5.4.41
20151229 012926
Output for 5.4.35 - 5.4.38
20151229 012927
Output for 5.4.31 - 5.4.34
20151229 012928
Output for 5.4.26 - 5.4.30
20151229 012929
Output for 5.4.20 - 5.4.25
20151229 012930
Output for 5.4.16 - 5.4.19
20151229 012931
Output for 5.4.11 - 5.4.15
20151229 012932
Output for 5.3.21 - 5.3.29
Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' in /in/jUF1g on line 3
Process exited with code 255.