3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo intdiv(3, -2.5) . "\n"; echo (int)(3 / -2.5);
based on r8ZYO
Output for 7.0.0 - 7.2.0
-1 -1
Output for 5.3.20 - 5.6.28
Fatal error: Call to undefined function intdiv() in /in/0E3hh on line 3
Process exited with code 255.