3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyTable { private $name; public function __call($name, $argument) { return $this->$name(); } private function name() { var_dump('Im executing!'); return 'New Value'; } } $oMyTable = new MyTable(); $o = $oMyTable->name('StackOverflow'); var_dump($o); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iBnkl
function name:  (null)
number of ops:  11
compiled vars:  !0 = $oMyTable, !1 = $o
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   NEW                                              $2      'MyTable'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   19     3        INIT_METHOD_CALL                                         !0, 'name'
          4        SEND_VAL_EX                                              'StackOverflow'
          5        DO_FCALL                                      0  $5      
          6        ASSIGN                                                   !1, $5
   20     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                                 
   22    10      > RETURN                                                   1

Class MyTable:
Function __call:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iBnkl
function name:  __call
number of ops:  6
compiled vars:  !0 = $name, !1 = $argument
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    9     2        INIT_METHOD_CALL                                         !0
          3        DO_FCALL                                      0  $2      
          4      > RETURN                                                   $2
   10     5*     > RETURN                                                   null

End of function __call

Function name:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iBnkl
function name:  name
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   INIT_FCALL                                               'var_dump'
          1        SEND_VAL                                                 'Im+executing%21'
          2        DO_ICALL                                                 
   15     3      > RETURN                                                   'New+Value'
   16     4*     > RETURN                                                   null

End of function name

End of class MyTable.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.63 ms | 1395 KiB | 15 Q