3v4l.org

run code in 300+ PHP versions simultaneously
<?php class TC { public function test($a,$b){ return $a + $b; } } function plusMath(TC $test,$fir,$sec){ return $test->test($fir,$sec); } plusMath(1,2);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ubnFK
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_FCALL                                               'plusmath'
          1        SEND_VAL                                                 1
          2        SEND_VAL                                                 2
          3        DO_FCALL                                      0          
          4      > RETURN                                                   1

Function plusmath:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ubnFK
function name:  plusMath
number of ops:  9
compiled vars:  !0 = $test, !1 = $fir, !2 = $sec
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
   10     3        INIT_METHOD_CALL                                         !0, 'test'
          4        SEND_VAR_EX                                              !1
          5        SEND_VAR_EX                                              !2
          6        DO_FCALL                                      0  $3      
          7      > RETURN                                                   $3
   11     8*     > RETURN                                                   null

End of function plusmath

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

End of function test

End of class TC.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.29 ms | 1398 KiB | 14 Q