3v4l.org

run code in 500+ PHP versions simultaneously
<?php $b = ['siedemx'=>'ab', 'szescx'=>'a', 'osiemxxx'=>'abc']; array_walk($b, function($value, $key){echo"$key\n";}); array_walk($b, function($value, $key){echo strlen($key) . "\n";});
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lTmWS
function name:  (null)
number of ops:  12
compiled vars:  !0 = $b
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, <array>
    3     1        INIT_FCALL                                                   'array_walk'
          2        SEND_REF                                                     !0
          3        DECLARE_LAMBDA_FUNCTION                              ~2      [0]
          4        SEND_VAL                                                     ~2
          5        DO_ICALL                                                     
    5     6        INIT_FCALL                                                   'array_walk'
          7        SEND_REF                                                     !0
          8        DECLARE_LAMBDA_FUNCTION                              ~4      [1]
          9        SEND_VAL                                                     ~4
         10        DO_ICALL                                                     
         11      > RETURN                                                       1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lTmWS
function name:  {closure:/in/lTmWS:3}
number of ops:  6
compiled vars:  !0 = $value, !1 = $key
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   RECV                                                 !0      
          1        RECV                                                 !1      
          2        NOP                                                          
          3        FAST_CONCAT                                          ~2      !1, '%0A'
          4        ECHO                                                         ~2
          5      > RETURN                                                       null

End of Dynamic Function 0

Dynamic Function 1
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lTmWS
function name:  {closure:/in/lTmWS:5}
number of ops:  6
compiled vars:  !0 = $value, !1 = $key
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    5     0  E >   RECV                                                 !0      
          1        RECV                                                 !1      
          2        STRLEN                                               ~2      !1
          3        CONCAT                                               ~3      ~2, '%0A'
          4        ECHO                                                         ~3
          5      > RETURN                                                       null

End of Dynamic Function 1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
216.73 ms | 2733 KiB | 14 Q