3v4l.org

run code in 300+ PHP versions simultaneously
<?php $id=1; $img='2.jpg'; $date = new DateTime(); echo $id.'-'.$date->getTimestamp();
Output for 5.6.28, 7.0.20, 7.1.0 - 7.1.20, 7.2.0 - 7.2.33, 7.3.16 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.17, 8.3.0 - 8.3.4
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

preferences:
182.6 ms | 401 KiB | 211 Q