3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = simplexml_load_string('<x>2.5</x>'); var_dump($x * 1); $y = '2.5'; var_dump($y * 1);

preferences:
63.81 ms | 409 KiB | 5 Q