3v4l.org

run code in 300+ PHP versions simultaneously
<?php $myArray = array( 'hello' => 'world!', ); function clearArray() { global $myArray; unset($myArray); } var_dump($myArray); clearArray(); var_dump($myArray);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AjQ20
function name:  (null)
number of ops:  10
compiled vars:  !0 = $myArray
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   12     1        INIT_FCALL                                               'var_dump'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
   13     4        INIT_FCALL                                               'cleararray'
          5        DO_FCALL                                      0          
   14     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

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

End of function cleararray

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.64 ms | 1397 KiB | 16 Q