3v4l.org

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

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

End of function a

End of class plus.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.63 ms | 1393 KiB | 13 Q