3v4l.org

run code in 300+ PHP versions simultaneously
<?php $num1 = "5"; $num2 = "6"; function multi() { global $num1,$num2; unset($num2); } multi(); echo $num2;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/q3LoS
function name:  (null)
number of ops:  6
compiled vars:  !0 = $num1, !1 = $num2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '5'
    4     1        ASSIGN                                                   !1, '6'
   16     2        INIT_FCALL                                               'multi'
          3        DO_FCALL                                      0          
   18     4        ECHO                                                     !1
          5      > RETURN                                                   1

Function multi:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/q3LoS
function name:  multi
number of ops:  4
compiled vars:  !0 = $num1, !1 = $num2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   BIND_GLOBAL                                              !0, 'num1'
          1        BIND_GLOBAL                                              !1, 'num2'
   12     2        UNSET_CV                                                 !1
   14     3      > RETURN                                                   null

End of function multi

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.47 ms | 1396 KiB | 14 Q