3v4l.org

run code in 300+ PHP versions simultaneously
<?php class vldtest { private $vals = array(); public function setVal($name, $val) { $this->$vals[$name] = $val; return $this; } public function dump() { } } $obj = new vldtest(); $obj ->setVal('d', 'v') ->setVal('foo', 'bar') ->setVal('a', 'a') ->setVal('er', 'vt') ; $obj->dump();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JENRf
function name:  (null)
number of ops:  22
compiled vars:  !0 = $obj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   NEW                                              $1      'vldtest'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   10     3        INIT_METHOD_CALL                                         !0, 'setVal'
          4        SEND_VAL_EX                                              'd'
          5        SEND_VAL_EX                                              'v'
          6        DO_FCALL                                      0  $4      
   11     7        INIT_METHOD_CALL                                         $4, 'setVal'
          8        SEND_VAL_EX                                              'foo'
          9        SEND_VAL_EX                                              'bar'
         10        DO_FCALL                                      0  $5      
   12    11        INIT_METHOD_CALL                                         $5, 'setVal'
         12        SEND_VAL_EX                                              'a'
         13        SEND_VAL_EX                                              'a'
         14        DO_FCALL                                      0  $6      
   13    15        INIT_METHOD_CALL                                         $6, 'setVal'
         16        SEND_VAL_EX                                              'er'
         17        SEND_VAL_EX                                              'vt'
         18        DO_FCALL                                      0          
   16    19        INIT_METHOD_CALL                                         !0, 'dump'
         20        DO_FCALL                                      0          
         21      > RETURN                                                   1

Class vldtest:
Function setval:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JENRf
function name:  setVal
number of ops:  8
compiled vars:  !0 = $name, !1 = $val, !2 = $vals
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        FETCH_OBJ_W                                      $3      !2
          3        ASSIGN_DIM                                               $3, !0
          4        OP_DATA                                                  !1
          5        FETCH_THIS                                       ~5      
          6      > RETURN                                                   ~5
          7*     > RETURN                                                   null

End of function setval

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

End of function dump

End of class vldtest.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.57 ms | 1386 KiB | 13 Q