3v4l.org

run code in 300+ 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.0 - 7.2.33, 7.3.16 - 7.3.33, 7.4.0 - 7.4.30, 8.0.0 - 8.0.23, 8.1.0 - 8.1.10
int(83) int(2748) int(13)
Output for 7.1.10

Process exited with code 137.
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.0.20, 7.1.0 - 7.1.1
int(83) int(2748) int(0)

preferences:
59.52 ms | 411 KiB | 5 Q