3v4l.org

run code in 300+ PHP versions simultaneously
<?php $today = date('now'); $delay = rand(1,3); $today->datemodify('+3days'); var_dump($today);
Output for 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.26, 7.3.0 - 7.3.13, 7.4.0 - 7.4.1
Fatal error: Uncaught Error: Call to a member function datemodify() on string in /in/PVp6h:5 Stack trace: #0 {main} thrown in /in/PVp6h on line 5
Process exited with code 255.
Output for 5.6.0 - 5.6.40
Fatal error: Call to a member function datemodify() on string in /in/PVp6h on line 5
Process exited with code 255.

preferences:
140.88 ms | 401 KiB | 157 Q