3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Calculator { public function __get($a) { return 4; } public function __call($a, $b) { return 4; } } $calculator = new Calculator; echo $calculator->doSomething();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VET5X
function name:  (null)
number of ops:  7
compiled vars:  !0 = $calculator
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   NEW                                              $1      'Calculator'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   17     3        INIT_METHOD_CALL                                         !0, 'doSomething'
          4        DO_FCALL                                      0  $4      
          5        ECHO                                                     $4
          6      > RETURN                                                   1

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

End of function __get

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

End of function __call

End of class Calculator.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.14 ms | 1394 KiB | 13 Q