3v4l.org

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

Function pencils:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BZau4
function name:  pencils
number of ops:  3
compiled vars:  !0 = $pens
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   BIND_GLOBAL                                              !0, 'pens'
    7     1        ASSIGN                                                   !0, null
    8     2      > RETURN                                                   null

End of function pencils

Function puppies:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BZau4
function name:  puppies
number of ops:  6
compiled vars:  !0 = $pens
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   BIND_GLOBAL                                              !0, 'pens'
   12     1        INIT_FCALL                                               'var_dump'
          2        ISSET_ISEMPTY_CV                                 ~1      !0
          3        SEND_VAL                                                 ~1
          4        DO_ICALL                                                 
   13     5      > RETURN                                                   null

End of function puppies

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
180.17 ms | 1397 KiB | 17 Q