3v4l.org

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

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

End of function __invoke

End of class sth.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.82 ms | 1393 KiB | 13 Q