3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $xml = new SimpleXMLElement('<product id="1030" sequence="1"> <name>Xpresspost</name> <rate>8.01</rate> <shippingDate>2013-12-02</shippingDate> <deliveryDate>2013-12-03</deliveryDate> <deliveryDayOfWeek>3</deliveryDayOfWeek> <nextDayAM>false</nextDayAM> <packingID>P_0</packingID> </product>'); echo (float)'8.01';
Output for 5.0.0 - 7.1.0
8.01
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: simplexmlelement in /in/L3pcI on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: simplexmlelement in /in/L3pcI on line 2