3v4l.org

run code in 300+ PHP versions simultaneously
<?php $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/Q6ZBE
function name:  (null)
number of ops:  21
compiled vars:  !0 = $ids, !1 = $id
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1      > FE_RESET_RW                                      $3      !0, ->6
          2    > > FE_FETCH_RW                                              $3, !1, ->6
    5     3    >   CAST                                          4  ~4      !1
          4        ASSIGN                                                   !1, ~4
    4     5      > JMP                                                      ->2
          6    >   FE_FREE                                                  $3
    8     7        INIT_FCALL_BY_NAME                                       'slog'
          8        SEND_VAR_EX                                              !0
          9        DO_FCALL                                      0          
    9    10      > FE_RESET_R                                       $7      !0, ->16
         11    > > FE_FETCH_R                                               $7, !1, ->16
   10    12    >   INIT_FCALL_BY_NAME                                       'slog'
         13        SEND_VAR_EX                                              !1
         14        DO_FCALL                                      0          
    9    15      > JMP                                                      ->11
         16    >   FE_FREE                                                  $7
   12    17        INIT_FCALL_BY_NAME                                       'slog'
         18        SEND_VAR_EX                                              !0
         19        DO_FCALL                                      0          
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.6 ms | 1394 KiB | 13 Q