3v4l.org

run code in 500+ PHP versions simultaneously
<?php class Posrat { function __invoke() {echo 'Poshel kal' . PHP_EOL;} } class Jopa { public function __construct(public Posrat $posrat) {} function posrat() {echo 'Poshel kal is jopi' . PHP_EOL;} } $jopa = new Jopa(new Posrat); $jopa->posrat(); ($jopa->posrat)();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oni6O
function name:  (null)
number of ops:  12
compiled vars:  !0 = $jopa
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   13     0  E >   NEW                                                  $1      'Jopa'
          1        NEW                                                  $2      'Posrat'
          2        DO_FCALL                                          0          
          3        SEND_VAR_NO_REF_EX                                           $2
          4        DO_FCALL                                          0          
          5        ASSIGN                                                       !0, $1
   14     6        INIT_METHOD_CALL                                             !0, 'posrat'
          7        DO_FCALL                                          0          
   15     8        FETCH_OBJ_R                                          ~7      !0, 'posrat'
          9        INIT_DYNAMIC_CALL                                            ~7
         10        DO_FCALL                                          0          
         11      > RETURN                                                       1

Class Posrat:
Function __invoke:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oni6O
function name:  __invoke
number of ops:  2
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   ECHO                                                         'Poshel+kal%0A'
          1      > RETURN                                                       null

End of function __invoke

End of class Posrat.

Class Jopa:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oni6O
function name:  __construct
number of ops:  4
compiled vars:  !0 = $posrat
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    8     0  E >   RECV                                                 !0      
          1        ASSIGN_OBJ                                                   'posrat'
          2        OP_DATA                                                      !0
          3      > RETURN                                                       null

End of function __construct

Function posrat:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oni6O
function name:  posrat
number of ops:  2
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   10     0  E >   ECHO                                                         'Poshel+kal+is+jopi%0A'
          1      > RETURN                                                       null

End of function posrat

End of class Jopa.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
164.6 ms | 1580 KiB | 13 Q