3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $int = 10; $div = 4; var_dump(intdiv($int, $div), $int / $div);
based on FXRXK
Output for 7.0.0 - 7.2.0
int(2) float(2.5)
Output for 5.3.21 - 5.6.28
Fatal error: Call to undefined function intdiv() in /in/jTjBg on line 5
Process exited with code 255.