3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $today = date('now'); $delay = rand(1,3); $today->modify('+3days'); var_dump($today);
based on PVp6h
Output for 7.0.0 - 7.2.6
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.
Output for hhvm-3.15.4
Fatal error: Uncaught exception 'BadMethodCallException' with message 'Call to a member function modify() on a non-object (string)' in /in/arnES:5 Stack trace: #0 {main}
Process exited with code 255.
Output for 5.6.0 - 5.6.30
Fatal error: Call to a member function modify() on string in /in/arnES on line 5
Process exited with code 255.