3v4l.org

run code in 500+ PHP versions simultaneously
<?php $x = simplexml_load_string('<x>2.5</x>'); var_dump($x * 1); $y = '2.5'; var_dump($y * 1);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OqOJq
function name:  (null)
number of ops:  14
compiled vars:  !0 = $x, !1 = $y
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'simplexml_load_string'
          1        SEND_VAL                                                     '%3Cx%3E2.5%3C%2Fx%3E'
          2        DO_ICALL                                             $2      
          3        ASSIGN                                                       !0, $2
    4     4        INIT_FCALL                                                   'var_dump'
          5        MUL                                                  ~4      !0, 1
          6        SEND_VAL                                                     ~4
          7        DO_ICALL                                                     
    6     8        ASSIGN                                                       !1, '2.5'
    7     9        INIT_FCALL                                                   'var_dump'
         10        MUL                                                  ~7      !1, 1
         11        SEND_VAL                                                     ~7
         12        DO_ICALL                                                     
         13      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
168.19 ms | 2536 KiB | 15 Q