3v4l.org

run code in 500+ PHP versions simultaneously
<?php foreach ( (function() { return ['key' => 'Value'];})() as $key => $val){ echo $key . ': '.$val; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 10
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 10
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/Tvja8
function name:  (null)
number of ops:  12
compiled vars:  !0 = $val, !1 = $key
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   DECLARE_LAMBDA_FUNCTION                              ~2      [0]
          1        INIT_DYNAMIC_CALL                                            ~2
          2        DO_FCALL                                          0  $3      
          3      > FE_RESET_R                                           $4      $3, ->10
          4    > > FE_FETCH_R                                           ~5      $4, !0, ->10
          5    >   ASSIGN                                                       !1, ~5
    3     6        CONCAT                                               ~7      !1, '%3A+'
          7        CONCAT                                               ~8      ~7, !0
          8        ECHO                                                         ~8
    2     9      > JMP                                                          ->4
         10    >   FE_FREE                                                      $4
    4    11      > RETURN                                                       1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Tvja8
function name:  {closure:/in/Tvja8:2}
number of ops:  2
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E > > RETURN                                                       <array>
          1*     > RETURN                                                       null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
166.22 ms | 2211 KiB | 13 Q