3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ar = ['a' => 'b']; $keys = ['a' => 'a']; function cb($v, $k){ return $v; } print_r( array_map('cb', $ar, $keys) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/juIfu
function name:  (null)
number of ops:  11
compiled vars:  !0 = $ar, !1 = $keys
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, <array>
    5     2        INIT_FCALL                                               'print_r'
          3        INIT_FCALL                                               'array_map'
          4        SEND_VAL                                                 'cb'
          5        SEND_VAR                                                 !0
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                         $4      
          8        SEND_VAR                                                 $4
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Function cb:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/juIfu
function name:  cb
number of ops:  4
compiled vars:  !0 = $v, !1 = $k
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2      > RETURN                                                   !0
          3*     > RETURN                                                   null

End of function cb

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.41 ms | 1394 KiB | 17 Q