3v4l.org

run code in 300+ PHP versions simultaneously
<?php $items = array( array( 'id' => 314, 'name' => 'Product Example 1', 'sku' => '3324', 'price' => '3.25', 'avail' => 'Y' ), array( 'id' => 315, 'name' => 'Product Example 2', 'sku' => '3327', 'price' => '2.99', 'avail' => 'N' ) ); $arr = array(); foreach($items as $item){ $arr[] = $item; } echo "<pre>".print_r($arr, true)."</pre>"; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 7
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 7
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
filename:       /in/bR0VY
function name:  (null)
number of ops:  16
compiled vars:  !0 = $items, !1 = $arr, !2 = $item
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   19     1        ASSIGN                                                   !1, <array>
   22     2      > FE_RESET_R                                       $5      !0, ->7
          3    > > FE_FETCH_R                                               $5, !2, ->7
   23     4    >   ASSIGN_DIM                                               !1
          5        OP_DATA                                                  !2
   22     6      > JMP                                                      ->3
          7    >   FE_FREE                                                  $5
   27     8        INIT_FCALL                                               'print_r'
          9        SEND_VAR                                                 !1
         10        SEND_VAL                                                 <true>
         11        DO_ICALL                                         $7      
         12        CONCAT                                           ~8      '%3Cpre%3E', $7
         13        CONCAT                                           ~9      ~8, '%3C%2Fpre%3E'
         14        ECHO                                                     ~9
   28    15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
273.36 ms | 1395 KiB | 16 Q