3v4l.org

run code in 300+ PHP versions simultaneously
<?php class JController { public function __set($name, $value) { //JView::assign($name, $value); } protected function render($name, $options = array()) { echo __FILE__ ."\n"; echo __CLASS__ ."\n"; echo __FUNCTION__ ."\n"; echo __METHOD__."\n"; $trace = debug_backtrace(); $caller = array_shift($trace); echo "Called by {$caller['function']}"; //return JView::render($name, $options); } } class Pippo extends JController { public function index() { $this->name = 'Jacopo'; $this->render('pippo/index'); } } $x = new Pippo(); $x->index();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZQ8hM
function name:  (null)
number of ops:  6
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   36     0  E >   NEW                                              $1      'Pippo'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   39     3        INIT_METHOD_CALL                                         !0, 'index'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Class JController:
Function __set:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZQ8hM
function name:  __set
number of ops:  3
compiled vars:  !0 = $name, !1 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    7     2      > RETURN                                                   null

End of function __set

Function render:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZQ8hM
function name:  render
number of ops:  18
compiled vars:  !0 = $name, !1 = $options, !2 = $trace, !3 = $caller
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      <array>
   11     2        ECHO                                                     '%2Fin%2FZQ8hM%0A'
   13     3        ECHO                                                     'JController%0A'
   15     4        ECHO                                                     'render%0A'
   16     5        ECHO                                                     'JController%3A%3Arender%0A'
   18     6        INIT_FCALL                                               'debug_backtrace'
          7        DO_ICALL                                         $4      
          8        ASSIGN                                                   !2, $4
   19     9        INIT_FCALL                                               'array_shift'
         10        SEND_REF                                                 !2
         11        DO_ICALL                                         $6      
         12        ASSIGN                                                   !3, $6
   21    13        NOP                                                      
         14        FETCH_DIM_R                                      ~8      !3, 'function'
         15        FAST_CONCAT                                      ~9      'Called+by+', ~8
         16        ECHO                                                     ~9
   24    17      > RETURN                                                   null

End of function render

End of class JController.

Class Pippo:
Function index:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZQ8hM
function name:  index
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   31     0  E >   ASSIGN_OBJ                                               'name'
          1        OP_DATA                                                  'Jacopo'
   32     2        INIT_METHOD_CALL                                         'render'
          3        SEND_VAL_EX                                              'pippo%2Findex'
          4        DO_FCALL                                      0          
   33     5      > RETURN                                                   null

End of function index

Function __set:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZQ8hM
function name:  __set
number of ops:  3
compiled vars:  !0 = $name, !1 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    7     2      > RETURN                                                   null

End of function __set

Function render:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZQ8hM
function name:  render
number of ops:  18
compiled vars:  !0 = $name, !1 = $options, !2 = $trace, !3 = $caller
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      <array>
   11     2        ECHO                                                     '%2Fin%2FZQ8hM%0A'
   13     3        ECHO                                                     'JController%0A'
   15     4        ECHO                                                     'render%0A'
   16     5        ECHO                                                     'JController%3A%3Arender%0A'
   18     6        INIT_FCALL                                               'debug_backtrace'
          7        DO_ICALL                                         $4      
          8        ASSIGN                                                   !2, $4
   19     9        INIT_FCALL                                               'array_shift'
         10        SEND_REF                                                 !2
         11        DO_ICALL                                         $6      
         12        ASSIGN                                                   !3, $6
   21    13        NOP                                                      
         14        FETCH_DIM_R                                      ~8      !3, 'function'
         15        FAST_CONCAT                                      ~9      'Called+by+', ~8
         16        ECHO                                                     ~9
   24    17      > RETURN                                                   null

End of function render

End of class Pippo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.68 ms | 1400 KiB | 17 Q