3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Sum { public $a; public $b; public function __construct($a, $b) { $this->a = $a; $this->b = $b; } public function calculate() { return $a + $b; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4u2F5
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E > > RETURN                                                   1

Class Sum:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4u2F5
function name:  __construct
number of ops:  7
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   10     2        ASSIGN_OBJ                                               'a'
          3        OP_DATA                                                  !0
   11     4        ASSIGN_OBJ                                               'b'
          5        OP_DATA                                                  !1
   12     6      > RETURN                                                   null

End of function __construct

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

End of function calculate

End of class Sum.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.54 ms | 1385 KiB | 13 Q