3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ao = new ArrayObject([2, 3, 8, 9]); var_dump(array_walk_recursive($ao->getArrayCopy(), function($item, $key){ echo $key . ' => ' . $item . PHP_EOL; }));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cqgNj
function name:  (null)
number of ops:  15
compiled vars:  !0 = $ao
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      'ArrayObject'
          1        SEND_VAL_EX                                              <array>
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
    5     4        INIT_FCALL                                               'var_dump'
          5        INIT_FCALL                                               'array_walk_recursive'
          6        INIT_METHOD_CALL                                         !0, 'getArrayCopy'
          7        DO_FCALL                                      0  $4      
          8        SEND_VAR_NO_REF                               0          $4
          9        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FcqgNj%3A5%240'
    7    10        SEND_VAL                                                 ~5
         11        DO_ICALL                                         $6      
         12        SEND_VAR                                                 $6
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

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

End of function %00%7Bclosure%7D%2Fin%2FcqgNj%3A5%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.72 ms | 1395 KiB | 17 Q