3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr1= array('a' => "XL"); $arr2= array('a' => "XLd",'b'=>"CDW"); array_walk($arr2, function($key, $val){ print_r($val); print_r($key); });
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3ebQ1
function name:  (null)
number of ops:  8
compiled vars:  !0 = $arr1, !1 = $arr2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
    6     2        INIT_FCALL                                               'array_walk'
          3        SEND_REF                                                 !1
          4        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F3ebQ1%3A6%240'
    9     5        SEND_VAL                                                 ~4
          6        DO_ICALL                                                 
          7      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2F3ebQ1%3A6%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3ebQ1
function name:  {closure}
number of ops:  9
compiled vars:  !0 = $key, !1 = $val
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    7     2        INIT_FCALL                                               'print_r'
          3        SEND_VAR                                                 !1
          4        DO_ICALL                                                 
    8     5        INIT_FCALL                                               'print_r'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                                 
    9     8      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2F3ebQ1%3A6%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
185.74 ms | 1395 KiB | 17 Q