3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Stack { public $overflow; public static function overflow() { echo 'overflow'; } } $stack = new Stack; $stack::overflow(); $object = new stdClass; $object->stack = $stack = new Stack; $object->stack::overflow();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/T03ZE
function name:  (null)
number of ops:  19
compiled vars:  !0 = $stack, !1 = $object
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   NEW                                              $2      'Stack'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   16     3        FETCH_CLASS                                   0  $5      !0
          4        INIT_STATIC_METHOD_CALL                                  $5, 'overflow'
          5        DO_FCALL                                      0          
   18     6        NEW                                              $7      'stdClass'
          7        DO_FCALL                                      0          
          8        ASSIGN                                                   !1, $7
   20     9        NEW                                              $11     'Stack'
         10        DO_FCALL                                      0          
         11        ASSIGN                                           ~13     !0, $11
         12        ASSIGN_OBJ                                               !1, 'stack'
         13        OP_DATA                                                  ~13
   22    14        FETCH_OBJ_R                                      ~14     !1, 'stack'
         15        FETCH_CLASS                                   0  $15     ~14
         16        INIT_STATIC_METHOD_CALL                                  $15, 'overflow'
         17        DO_FCALL                                      0          
         18      > RETURN                                                   1

Class Stack:
Function overflow:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/T03ZE
function name:  overflow
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   ECHO                                                     'overflow'
   11     1      > RETURN                                                   null

End of function overflow

End of class Stack.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.17 ms | 1434 KiB | 13 Q