3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo (new DateTime('+300s'))->format('Ymd His');
Output for 5.6.28, 7.0.20, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.33, 8.0.0 - 8.0.12, 8.0.14 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.4, 8.3.6
20151229 012921
Output for 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 20151229 012921
Output for 7.3.32 - 7.3.33, 8.0.13
20151229 002921
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

preferences:
184.54 ms | 401 KiB | 226 Q