3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array( 0 => array('foo' => '1','bar' => 'A'), 1 => array('foo' => '2','bar' => 'B'), 2 => array('foo' => '3','bar' => 'C')); $foo = array_map('array_shift', $arr); $bar = array_map('array_pop', $arr); var_dump($foo,$bar);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZCgRe
function name:  (null)
number of ops:  16
compiled vars:  !0 = $arr, !1 = $foo, !2 = $bar
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    8     1        INIT_FCALL                                               'array_map'
          2        SEND_VAL                                                 'array_shift'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
    9     6        INIT_FCALL                                               'array_map'
          7        SEND_VAL                                                 'array_pop'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $6      
         10        ASSIGN                                                   !2, $6
   11    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !1
         13        SEND_VAR                                                 !2
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.44 ms | 1394 KiB | 17 Q