3v4l.org

run code in 300+ PHP versions simultaneously
<?php function slog($ids) { print_r($ids); } $ids = array('1234', '5678'); foreach ($ids as &$id) { $id = (int)$id; } slog($ids); foreach ($ids as $id) { slog($id); } slog($ids);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 125) Position 1 = 2, Position 2 = 6
Branch analysis from position: 2
2 jumps found. (Code = 126) Position 1 = 3, Position 2 = 6
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 6
2 jumps found. (Code = 77) Position 1 = 11, Position 2 = 16
Branch analysis from position: 11
2 jumps found. (Code = 78) Position 1 = 12, Position 2 = 16
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
Branch analysis from position: 6
filename:       /in/6UiLR
function name:  (null)
number of ops:  21
compiled vars:  !0 = $ids, !1 = $id
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ASSIGN                                                   !0, <array>
    8     1      > FE_RESET_RW                                      $3      !0, ->6
          2    > > FE_FETCH_RW                                              $3, !1, ->6
    9     3    >   CAST                                          4  ~4      !1
          4        ASSIGN                                                   !1, ~4
    8     5      > JMP                                                      ->2
          6    >   FE_FREE                                                  $3
   12     7        INIT_FCALL                                               'slog'
          8        SEND_VAR                                                 !0
          9        DO_FCALL                                      0          
   13    10      > FE_RESET_R                                       $7      !0, ->16
         11    > > FE_FETCH_R                                               $7, !1, ->16
   14    12    >   INIT_FCALL                                               'slog'
         13        SEND_VAR                                                 !1
         14        DO_FCALL                                      0          
   13    15      > JMP                                                      ->11
         16    >   FE_FREE                                                  $7
   16    17        INIT_FCALL                                               'slog'
         18        SEND_VAR                                                 !0
         19        DO_FCALL                                      0          
         20      > RETURN                                                   1

Function slog:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6UiLR
function name:  slog
number of ops:  5
compiled vars:  !0 = $ids
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        INIT_FCALL                                               'print_r'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
    5     4      > RETURN                                                   null

End of function slog

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.96 ms | 944 KiB | 19 Q