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 as $row) { print_r(array_slice($row, 1)); } //print_r(array_slice($array2,1)); //print_r(array_values(array_slice($array, 1))); //print_r(implode('', array_map(function ($entry) { // return $entry['red']; //}, array_slice($a,1)))); //print_r(implode('',array_values(array_slice($a, 1))));
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 11, Position 2 = 20
Branch analysis from position: 11
2 jumps found. (Code = 78) Position 1 = 12, Position 2 = 20
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
filename:       /in/OV93b
function name:  (null)
number of ops:  22
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      > FE_RESET_R                                       $9      !1, ->20
         11    > > FE_FETCH_R                                               $9, !2, ->20
   43    12    >   INIT_FCALL                                               'print_r'
         13        INIT_FCALL                                               'array_slice'
         14        SEND_VAR                                                 !2
         15        SEND_VAL                                                 1
         16        DO_ICALL                                         $10     
         17        SEND_VAR                                                 $10
         18        DO_ICALL                                                 
   42    19      > JMP                                                      ->11
         20    >   FE_FREE                                                  $9
   55    21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.81 ms | 1386 KiB | 17 Q