3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $d = date(); echo ~~$d,"\n"; echo $d;
Output for 7.0.0 - 7.2.0
Warning: date() expects at least 1 parameter, 0 given in /in/AtY4P on line 2 Fatal error: Uncaught Error: Unsupported operand types in /in/AtY4P:3 Stack trace: #0 {main} thrown in /in/AtY4P on line 3
Process exited with code 255.
Output for 5.1.0 - 5.6.25
Warning: date() expects at least 1 parameter, 0 given in /in/AtY4P on line 2 Fatal error: Unsupported operand types in /in/AtY4P on line 3
Process exited with code 255.
Output for 4.3.2 - 5.0.5
Warning: Wrong parameter count for date() in /in/AtY4P on line 2 Fatal error: Unsupported operand types in /in/AtY4P on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Warning: Wrong parameter count for date() in /in/AtY4P on line 2 Fatal error: Unsupported operand types in /in/AtY4P on line 3