3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo (int) "0xf" + 2.8,"\n"; echo (int) ("0xf" + 2.8),"\n"; echo intval("0xf", 16) + (int) 2.8,"\n"; echo intval("0xf", 0) + (int) 2.8;

preferences:
35.83 ms | 402 KiB | 5 Q