3v4l.org

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

Class BlogCommentRepository:
Function find:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/D7lJP
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                                                   1
    8     3*     > RETURN                                                   null

End of function find

End of class BlogCommentRepository.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.54 ms | 1396 KiB | 15 Q