3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { } class B { public function __destruct() { var_dump(isset($GLOBALS['a'])); } } $a = new A(); $b = new B();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ITRPj
function name:  (null)
number of ops:  7
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   NEW                                              $2      'A'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   16     3        NEW                                              $5      'B'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !1, $5
          6      > RETURN                                                   1

Class A: [no user functions]
Class B:
Function __destruct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ITRPj
function name:  __destruct
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_FCALL                                               'var_dump'
          1        FETCH_IS                                         ~0      'GLOBALS'
          2        ISSET_ISEMPTY_DIM_OBJ                         0  ~1      ~0, 'a'
          3        SEND_VAL                                                 ~1
          4        DO_ICALL                                                 
   12     5      > RETURN                                                   null

End of function __destruct

End of class B.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
223.29 ms | 1394 KiB | 15 Q