3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Vas{ private $auto; public function __call($met, $ar) { echo 'no such func called '. $met .PHP_EOL; echo 'argumentiruj ' . implode(', ', $ar); } public function aa($a) { $this->auto = $a; echo $a . PHP_EOL; } public function __get($property) { if (property_exists($this, $property)) { return $this->$property; } } } $ob = new Vas(); $ob->test(); $ob->aa('sss'); $res = $ob->auto; echo $res;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sWiL3
function name:  (null)
number of ops:  12
compiled vars:  !0 = $ob, !1 = $res
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   26     0  E >   NEW                                              $2      'Vas'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   27     3        INIT_METHOD_CALL                                         !0, 'test'
          4        DO_FCALL                                      0          
   28     5        INIT_METHOD_CALL                                         !0, 'aa'
          6        SEND_VAL_EX                                              'sss'
          7        DO_FCALL                                      0          
   29     8        FETCH_OBJ_R                                      ~7      !0, 'auto'
          9        ASSIGN                                                   !1, ~7
   30    10        ECHO                                                     !1
         11      > RETURN                                                   1

Class Vas:
Function __call:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sWiL3
function name:  __call
number of ops:  12
compiled vars:  !0 = $met, !1 = $ar
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    8     2        CONCAT                                           ~2      'no+such+func+called+', !0
          3        CONCAT                                           ~3      ~2, '%0A'
          4        ECHO                                                     ~3
    9     5        INIT_FCALL                                               'implode'
          6        SEND_VAL                                                 '%2C+'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $4      
          9        CONCAT                                           ~5      'argumentiruj+', $4
         10        ECHO                                                     ~5
   10    11      > RETURN                                                   null

End of function __call

Function aa:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sWiL3
function name:  aa
number of ops:  6
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   RECV                                             !0      
   14     1        ASSIGN_OBJ                                               'auto'
          2        OP_DATA                                                  !0
   15     3        CONCAT                                           ~2      !0, '%0A'
          4        ECHO                                                     ~2
   16     5      > RETURN                                                   null

End of function aa

Function __get:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 9
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sWiL3
function name:  __get
number of ops:  10
compiled vars:  !0 = $property
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   RECV                                             !0      
   20     1        INIT_FCALL                                               'property_exists'
          2        FETCH_THIS                                       ~1      
          3        SEND_VAL                                                 ~1
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6      > JMPZ                                                     $2, ->9
   21     7    >   FETCH_OBJ_R                                      ~3      !0
          8      > RETURN                                                   ~3
   23     9    > > RETURN                                                   null

End of function __get

End of class Vas.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.61 ms | 1400 KiB | 17 Q