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

End of function testing

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.14 ms | 1397 KiB | 16 Q