3v4l.org

run code in 200+ PHP versions simultaneously
<?php var_dump(intval('0123', 0)); var_dump(intval('0xabc', 0)); var_dump(intval('0b1101', 0));
Output for 7.1.2 - 7.1.7, 7.1.20 - 7.2.6
int(83) int(2748) int(13)
Output for 7.1.10

Process exited with code 137.
Output for 5.6.0 - 7.1.1
int(83) int(2748) int(0)