3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(true,"bla",new stdClass,array(5,7,8),5,6.0); foreach ($a as $k => $v) {echo $v;}
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 10, Position 2 = 14
Branch analysis from position: 10
2 jumps found. (Code = 78) Position 1 = 11, Position 2 = 14
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/nqe6f
function name:  (null)
number of ops:  16
compiled vars:  !0 = $a, !1 = $v, !2 = $k
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_ARRAY                                       ~3      <true>
          1        ADD_ARRAY_ELEMENT                                ~3      'bla'
          2        NEW                                              $4      'stdClass'
          3        DO_FCALL                                      0          
          4        ADD_ARRAY_ELEMENT                                ~3      $4
          5        ADD_ARRAY_ELEMENT                                ~3      <array>
          6        ADD_ARRAY_ELEMENT                                ~3      5
          7        ADD_ARRAY_ELEMENT                                ~3      6
          8        ASSIGN                                                   !0, ~3
    3     9      > FE_RESET_R                                       $7      !0, ->14
         10    > > FE_FETCH_R                                       ~8      $7, !1, ->14
         11    >   ASSIGN                                                   !2, ~8
         12        ECHO                                                     !1
         13      > JMP                                                      ->10
         14    >   FE_FREE                                                  $7
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.09 ms | 1397 KiB | 13 Q