3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array[] = array ( 'age' => 'Lower limit', 'shipments' => null, 'orders' => null, 'ifs' => null, 'items' => 2, 'highlight' => false ); $array[] = array ( 'age' => 'Upper limit', 'shipments' => null, 'orders' => null, 'ifs' => null, 'items' =>3, 'highlight' => false ); $array[] = array ( 'age' => 'Limits:', 'shipments' => null, 'orders' => null, 'ifs' => null, 'items' => null, 'highlight' => 1 ); $array[] = array ( 'age' => 'Freeze limit', 'shipments' => null, 'orders' => null, 'ifs' => null, 'items' => 1, 'highlight' => false ); $array2 = array ( 'ageing_data' => $array, ); foreach ($array2['ageing_data'] as $row) { print_r($row['highlight']); print_r(implode('',array_slice($row, 1))); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 12, Position 2 = 29
Branch analysis from position: 12
2 jumps found. (Code = 78) Position 1 = 13, Position 2 = 29
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 29
filename:       /in/5sWIA
function name:  (null)
number of ops:  31
compiled vars:  !0 = $array, !1 = $array2, !2 = $row
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN_DIM                                               !0
    3     1        OP_DATA                                                  <array>
   11     2        ASSIGN_DIM                                               !0
   12     3        OP_DATA                                                  <array>
   19     4        ASSIGN_DIM                                               !0
   20     5        OP_DATA                                                  <array>
   28     6        ASSIGN_DIM                                               !0
   29     7        OP_DATA                                                  <array>
   38     8        INIT_ARRAY                                       ~7      !0, 'ageing_data'
   37     9        ASSIGN                                                   !1, ~7
   42    10        FETCH_DIM_R                                      ~9      !1, 'ageing_data'
         11      > FE_RESET_R                                       $10     ~9, ->29
         12    > > FE_FETCH_R                                               $10, !2, ->29
   43    13    >   INIT_FCALL                                               'print_r'
         14        FETCH_DIM_R                                      ~11     !2, 'highlight'
         15        SEND_VAL                                                 ~11
         16        DO_ICALL                                                 
   44    17        INIT_FCALL                                               'print_r'
         18        INIT_FCALL                                               'implode'
         19        SEND_VAL                                                 ''
         20        INIT_FCALL                                               'array_slice'
         21        SEND_VAR                                                 !2
         22        SEND_VAL                                                 1
         23        DO_ICALL                                         $13     
         24        SEND_VAR                                                 $13
         25        DO_ICALL                                         $14     
         26        SEND_VAR                                                 $14
         27        DO_ICALL                                                 
   42    28      > JMP                                                      ->12
         29    >   FE_FREE                                                  $10
   45    30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.24 ms | 1396 KiB | 19 Q