3v4l.org

run code in 300+ PHP versions simultaneously
<?php intval('42', 8); // => 34 intval(42, 8); // => 42 ! ?> PHP considers the 42 as being already an integer, and doesn't apply any conversion. And supplying <?php intval(49, 8); // => 49 ! ?>

preferences:
38 ms | 402 KiB | 5 Q