3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo (int)"432FFF4343"; echo (int)null; echo (int)true; echo (int)false; echo (int)''; $x = new Date(); echo (int)$x;
based on GuLHu
Output for 7.0.0 - 7.2.0
4320100 Fatal error: Uncaught Error: Class 'Date' not found in /in/i5QXR:8 Stack trace: #0 {main} thrown in /in/i5QXR on line 8
Process exited with code 255.
Output for 5.3.19 - 5.6.28
4320100 Fatal error: Class 'Date' not found in /in/i5QXR on line 8
Process exited with code 255.