3v4l.org

run code in 300+ PHP versions simultaneously
<?php function Testing() { $array = array( "1", "2", "3", ); foreach($array as $key => $value) { $values = $value; } return $values; } var_dump(Testing());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MWg5Z
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'testing'
          2        DO_FCALL                                      0  $0      
          3        SEND_VAR                                                 $0
          4        DO_ICALL                                                 
          5      > RETURN                                                   1

Function testing:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 6
Branch analysis from position: 2
2 jumps found. (Code = 78) 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
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
filename:       /in/MWg5Z
function name:  Testing
number of ops:  9
compiled vars:  !0 = $array, !1 = $value, !2 = $key, !3 = $values
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, <array>
   10     1      > FE_RESET_R                                       $5      !0, ->6
          2    > > FE_FETCH_R                                       ~6      $5, !1, ->6
          3    >   ASSIGN                                                   !2, ~6
   11     4        ASSIGN                                                   !3, !1
   10     5      > JMP                                                      ->2
          6    >   FE_FREE                                                  $5
   13     7      > RETURN                                                   !3
   14     8*     > RETURN                                                   null

End of function testing

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.72 ms | 1397 KiB | 16 Q