3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $hkey = "1234"; $shash = sha1($hkey.$date->format('Y-m-d H:i')); echo json_encode(array($shash));
Output for 7.0.5 - 7.2.0
Notice: Undefined variable: date in /in/jSaAe on line 3 Fatal error: Uncaught Error: Call to a member function format() on null in /in/jSaAe:3 Stack trace: #0 {main} thrown in /in/jSaAe on line 3
Process exited with code 255.
Output for 7.0.0 - 7.0.4
Notice: Undefined variable: date in /in/jSaAe on line 3 Fatal error: Uncaught Error: Call to a member function format() on unknown in /in/jSaAe:3 Stack trace: #0 {main} thrown in /in/jSaAe on line 3
Process exited with code 255.
Output for 5.6.0 - 5.6.24
Notice: Undefined variable: date in /in/jSaAe on line 3 Fatal error: Call to a member function format() on null in /in/jSaAe on line 3
Process exited with code 255.
Output for 5.4.0 - 5.5.38
Notice: Undefined variable: date in /in/jSaAe on line 3 Fatal error: Call to a member function format() on a non-object in /in/jSaAe on line 3
Process exited with code 255.