3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyTable { private $name; private $id; public function __set($p, $v) { # $this->{$p} = $v; return $this->$p(); } private function name() { var_dump("I'm executing!"); return "New Value!"; } } var_dump($p); $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/6hUKN
function name:  (null)
number of ops:  13
compiled vars:  !0 = $p, !1 = $oMyTable, !2 = $o
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   21     0  E >   INIT_FCALL                                               'var_dump'
          1        SEND_VAR                                                 !0
          2        DO_ICALL                                                 
   23     3        NEW                                              $4      'MyTable'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !1, $4
   26     6        ASSIGN_OBJ                                       ~7      !1, 'name'
          7        OP_DATA                                                  'StackOverflow'
          8        ASSIGN                                                   !2, ~7
   27     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !2
         11        DO_ICALL                                                 
   31    12      > RETURN                                                   1

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

End of function __set

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

End of function name

End of class MyTable.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
204.1 ms | 1396 KiB | 15 Q