3v4l.org

run code in 300+ PHP versions simultaneously
<?php function destroy_foo() { $_SESSION["a"] = "Hello!"; //global $foo; unset($_SESSION["a"]); } $_SESSION["a"]= 'bar'; destroy_foo(); echo $_SESSION["a"];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eLokZ
function name:  (null)
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   FETCH_W                      global              $0      '_SESSION'
          1        ASSIGN_DIM                                               $0, 'a'
          2        OP_DATA                                                  'bar'
   11     3        INIT_FCALL                                               'destroy_foo'
          4        DO_FCALL                                      0          
   12     5        FETCH_R                      global              ~3      '_SESSION'
          6        FETCH_DIM_R                                      ~4      ~3, 'a'
          7        ECHO                                                     ~4
          8      > RETURN                                                   1

Function destroy_foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eLokZ
function name:  destroy_foo
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   FETCH_W                      global              $0      '_SESSION'
          1        ASSIGN_DIM                                               $0, 'a'
          2        OP_DATA                                                  'Hello%21'
    7     3        FETCH_UNSET                                      $2      '_SESSION'
          4        UNSET_DIM                                                $2, 'a'
    8     5      > RETURN                                                   null

End of function destroy_foo

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.59 ms | 1397 KiB | 14 Q