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::__invoke(3, 4);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/q4gVX
function name:  (null)
number of ops:  10
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        FETCH_CLASS                                   0  $4      !0
          4        INIT_STATIC_METHOD_CALL                                  $4, '__invoke'
          5        SEND_VAL_EX                                              3
          6        SEND_VAL_EX                                              4
          7        DO_FCALL                                      0  $5      
          8        ECHO                                                     $5
          9      > RETURN                                                   1

Class sth:
Function __invoke:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/q4gVX
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:
152.5 ms | 1384 KiB | 13 Q