3v4l.org

run code in 300+ PHP versions simultaneously
<?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)$xml->rate;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sUrqH
function name:  (null)
number of ops:  8
compiled vars:  !0 = $xml
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $1      'SimpleXMLElement'
          1        SEND_VAL_EX                                              '%3Cproduct+id%3D%221030%22+sequence%3D%221%22%3E%0A%09%09%09%3Cname%3EXpresspost%3C%2Fname%3E%0A%09%09%09%3Crate%3E8.01%3C%2Frate%3E%0A%09%09%09%3CshippingDate%3E2013-12-02%3C%2FshippingDate%3E%0A%09%09%09%3CdeliveryDate%3E2013-12-03%3C%2FdeliveryDate%3E%0A%09%09%09%3CdeliveryDayOfWeek%3E3%3C%2FdeliveryDayOfWeek%3E%0A%09%09%09%3CnextDayAM%3Efalse%3C%2FnextDayAM%3E%0A%09%09%09%3CpackingID%3EP_0%3C%2FpackingID%3E%0A%09%09%3C%2Fproduct%3E'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   11     4        FETCH_OBJ_R                                      ~4      !0, 'rate'
          5        CAST                                          5  ~5      ~4
          6        ECHO                                                     ~5
          7      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.03 ms | 1392 KiB | 13 Q