3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $id=1; $img='2.jpg'; $date = new DateTime(); echo $id.'-'.$date->getTimestamp();
based on 4jprd
Output for 5.6.28, 7.0.20 - 7.3.0rc4
1-1459960738
Output for 7.0.6
1-1463852591
Output for 5.5.33 - 5.5.34, 5.6.19 - 5.6.20, 7.0.4 - 7.0.5
1-1459960739
Output for 5.5.31 - 5.5.32, 5.6.17 - 5.6.18, 7.0.1 - 7.0.3
1-1459960740
Output for 5.5.30, 5.6.14 - 5.6.16, 7.0.0
1-1459960741
Output for 5.6.21
1-1462217942
Output for 5.5.28 - 5.5.29, 5.6.12 - 5.6.13
1-1459960742
Output for 5.5.23 - 5.5.27, 5.6.7 - 5.6.11
1-1459960743
Output for 5.5.18 - 5.5.22, 5.6.2 - 5.6.6
1-1459960744
Output for 5.5.9 - 5.5.16, 5.6.0 - 5.6.1
1-1459960745
Output for 5.5.35
1-1463994177
Output for 5.5.0 - 5.5.8
1-1459960746