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 intval(49, 8); // => 49 ! ?>

preferences:
35.12 ms | 402 KiB | 5 Q