3v4l.org

run code in 300+ PHP versions simultaneously
<?php class BlogCommentRepository { public function find($something) { echo "called!"; return array('key' => 'value'); } } $blogCommentRepository = new BlogCommentRepository(); $blogCommentIds = array(1,2,3,4); foreach ($blogCommentRepository->find(explode(",", $blogCommentIds)) as $blogCommentId) { // }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 12, Position 2 = 14
Branch analysis from position: 12
2 jumps found. (Code = 78) Position 1 = 13, Position 2 = 14
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/KlUKd
function name:  (null)
number of ops:  16
compiled vars:  !0 = $blogCommentRepository, !1 = $blogCommentIds, !2 = $blogCommentId
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   NEW                                              $3      'BlogCommentRepository'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
   15     3        ASSIGN                                                   !1, <array>
   18     4        INIT_METHOD_CALL                                         !0, 'find'
          5        INIT_FCALL                                               'explode'
          6        SEND_VAL                                                 '%2C'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $7      
          9        SEND_VAR_NO_REF_EX                                       $7
         10        DO_FCALL                                      0  $8      
         11      > FE_RESET_R                                       $9      $8, ->14
         12    > > FE_FETCH_R                                               $9, !2, ->14
         13    > > JMP                                                      ->12
         14    >   FE_FREE                                                  $9
   20    15      > RETURN                                                   1

Class BlogCommentRepository:
Function find:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KlUKd
function name:  find
number of ops:  4
compiled vars:  !0 = $something
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    6     1        ECHO                                                     'called%21'
    7     2      > RETURN                                                   <array>
    8     3*     > RETURN                                                   null

End of function find

End of class BlogCommentRepository.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.93 ms | 1387 KiB | 15 Q