3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array( 'val1', 'val2', 'val3', 'val4', 'val5', ); print_out( $array ); array_walk( $array, function( &$value, $key ) use( &$array ){ $array[ $value ] = array( 'rule' => 'ctype_alnum', ); unset( $array[ $key ] ); }); function print_out( $val ) { echo '<pre>'; var_dump( $val ); echo '</pre>'; } print_out( $array );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iBhQB
function name:  (null)
number of ops:  14
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    7     1        INIT_FCALL_BY_NAME                                       'print_out'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0          
    9     4        INIT_FCALL                                               'array_walk'
          5        SEND_REF                                                 !0
          6        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FiBhQB%3A9%240'
          7        BIND_LEXICAL                                             ~3, !0
   14     8        SEND_VAL                                                 ~3
          9        DO_ICALL                                                 
   24    10        INIT_FCALL                                               'print_out'
         11        SEND_VAR                                                 !0
         12        DO_FCALL                                      0          
         13      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FiBhQB%3A9%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iBhQB
function name:  {closure}
number of ops:  7
compiled vars:  !0 = $value, !1 = $key, !2 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        BIND_STATIC                                              !2
   10     3        ASSIGN_DIM                                               !2, !0
   11     4        OP_DATA                                                  <array>
   13     5        UNSET_DIM                                                !2, !1
   14     6      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FiBhQB%3A9%240

Function print_out:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iBhQB
function name:  print_out
number of ops:  7
compiled vars:  !0 = $val
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   RECV                                             !0      
   19     1        ECHO                                                     '%3Cpre%3E'
   20     2        INIT_FCALL                                               'var_dump'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                                 
   21     5        ECHO                                                     '%3C%2Fpre%3E'
   22     6      > RETURN                                                   null

End of function print_out

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.72 ms | 1390 KiB | 18 Q