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);
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        QM_ASSIGN                                                !0
   4     4        INIT_FCALL                                               'var_dump'
         5        MUL                                              ~4      !0, 1
         6        SEND_VAL                                                 ~4
         7        DO_ICALL                                                 
   6     8        QM_ASSIGN                                                !1
   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.0.0


preferences:
12.13 ms | 410 KiB | 7 Q