3v4l.org

run code in 300+ PHP versions simultaneously
<?php $notification = array( 'test' => ' TST', 'tt ' => 'TST ' ); var_dump($notification); $notification = array_walk($notification, function (&$value) { return $value = trim($value); }); var_dump($notification);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TMsli
function name:  (null)
number of ops:  14
compiled vars:  !0 = $notification
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    8     1        INIT_FCALL                                               'var_dump'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
   10     4        INIT_FCALL                                               'array_walk'
          5        SEND_REF                                                 !0
          6        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FTMsli%3A10%240'
   12     7        SEND_VAL                                                 ~3
          8        DO_ICALL                                         $4      
   10     9        ASSIGN                                                   !0, $4
   14    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FTMsli%3A10%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TMsli
function name:  {closure}
number of ops:  7
compiled vars:  !0 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   RECV                                             !0      
   11     1        INIT_FCALL                                               'trim'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $1      
          4        ASSIGN                                           ~2      !0, $1
          5      > RETURN                                                   ~2
   12     6*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FTMsli%3A10%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.82 ms | 1395 KiB | 19 Q