3v4l.org

run code in 300+ PHP versions simultaneously
<?php $today = date('now'); $delay = rand(1,3); $today->modify('+3days'); var_dump($today);
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.25, 7.2.0 - 7.2.13, 7.3.0 - 7.3.1
Fatal error: Uncaught Error: Call to a member function modify() on string in /in/arnES:5 Stack trace: #0 {main} thrown in /in/arnES on line 5
Process exited with code 255.

preferences:
73.75 ms | 402 KiB | 52 Q