3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 'Foo', 'bAr' => 'BaR', 'suB' => [ 'a' => 1, 2 => 'b', 'C' => null, ], 'obj' => (object) [ 'd' => 1.333, 'SubArR' => [ 'This' => 'Is', 'a' => 'challenge', ] ] ]; array_walk_recursive( $array, fn(&$v) => $v = is_string($v) ? strtolower($v) : $v ); var_export($array);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bCmXh
function name:  (null)
number of ops:  15
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_ARRAY                                       ~1      'Foo'
    5     1        ADD_ARRAY_ELEMENT                                ~1      'BaR', 'bAr'
    4     2        ADD_ARRAY_ELEMENT                                ~1      <array>, 'suB'
   12     3        CAST                                          8  ~2      <array>
          4        ADD_ARRAY_ELEMENT                                ~1      ~2, 'obj'
    3     5        ASSIGN                                                   !0, ~1
   20     6        INIT_FCALL                                               'array_walk_recursive'
   21     7        SEND_REF                                                 !0
   22     8        DECLARE_LAMBDA_FUNCTION                          ~4      [0]
   23     9        SEND_VAL                                                 ~4
   20    10        DO_ICALL                                                 
   24    11        INIT_FCALL                                               'var_export'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                                 
         14      > RETURN                                                   1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 8
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bCmXh
function name:  {closure}
number of ops:  12
compiled vars:  !0 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   22     0  E >   RECV                                             !0      
          1        TYPE_CHECK                                   64          !0
          2      > JMPZ                                                     ~1, ->8
          3    >   INIT_FCALL                                               'strtolower'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        QM_ASSIGN                                        ~3      $2
          7      > JMP                                                      ->9
          8    >   QM_ASSIGN                                        ~3      !0
          9    >   ASSIGN                                           ~4      !0, ~3
         10      > RETURN                                                   ~4
   23    11*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.91 ms | 1003 KiB | 16 Q