3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a=array(); $a[]=array('id'=>1, 'name'=>'aaa'); $a[]=array('id'=>2, 'name'=>'bbb'); print_r($a); echo "\n"; foreach ($a as $b) { echo $b['id']." - ".$b['name']."\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 10, Position 2 = 18
Branch analysis from position: 10
2 jumps found. (Code = 78) Position 1 = 11, Position 2 = 18
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/skSss
function name:  (null)
number of ops:  20
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN_DIM                                               !0
          2        OP_DATA                                                  <array>
    5     3        ASSIGN_DIM                                               !0
          4        OP_DATA                                                  <array>
    7     5        INIT_FCALL                                               'print_r'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                                 
    8     8        ECHO                                                     '%0A'
    9     9      > FE_RESET_R                                       $6      !0, ->18
         10    > > FE_FETCH_R                                               $6, !1, ->18
   10    11    >   FETCH_DIM_R                                      ~7      !1, 'id'
         12        CONCAT                                           ~8      ~7, '+-+'
         13        FETCH_DIM_R                                      ~9      !1, 'name'
         14        CONCAT                                           ~10     ~8, ~9
         15        CONCAT                                           ~11     ~10, '%0A'
         16        ECHO                                                     ~11
    9    17      > JMP                                                      ->10
         18    >   FE_FREE                                                  $6
   11    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.3 ms | 1395 KiB | 15 Q