3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Child { public function run() { } } class Parents { /** * * @var Child[] */ public $children; } class School { public function lesson(Parents $parents) { foreach ( $parents->children as $child ) { $child->run(); } } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WdUWY
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E > > RETURN                                                   1

Class Child:
Function run:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WdUWY
function name:  run
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E > > RETURN                                                   null

End of function run

End of class Child.

Class Parents: [no user functions]
Class School:
Function lesson:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 7
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 7
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
filename:       /in/WdUWY
function name:  lesson
number of ops:  9
compiled vars:  !0 = $parents, !1 = $child
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   RECV                                             !0      
   16     1        FETCH_OBJ_R                                      ~2      !0, 'children'
          2      > FE_RESET_R                                       $3      ~2, ->7
          3    > > FE_FETCH_R                                               $3, !1, ->7
   17     4    >   INIT_METHOD_CALL                                         !1, 'run'
          5        DO_FCALL                                      0          
   16     6      > JMP                                                      ->3
          7    >   FE_FREE                                                  $3
   19     8      > RETURN                                                   null

End of function lesson

End of class School.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.93 ms | 1398 KiB | 13 Q