3v4l.org

run code in 300+ PHP versions simultaneously
<?php $myArray = [ true, ['abc', 'def', false], false, 1, 'ghi', 2, [['HELLO', 'WORLD', true], [123, 456, false, 'false'], ], ]; array_walk_recursive( $myArray, function (&$value) { if (is_bool($value)) { $value = 'I AM A BOOLEAN'; } } ); var_dump($myArray);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nCMK3
function name:  (null)
number of ops:  10
compiled vars:  !0 = $myArray
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   15     1        INIT_FCALL                                               'array_walk_recursive'
   16     2        SEND_REF                                                 !0
   17     3        DECLARE_LAMBDA_FUNCTION                          ~2      [0]
   21     4        SEND_VAL                                                 ~2
   15     5        DO_ICALL                                                 
   24     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
          9      > 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 = 4
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
filename:       /in/nCMK3
function name:  {closure}
number of ops:  5
compiled vars:  !0 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   RECV                                             !0      
   18     1        TYPE_CHECK                                   12          !0
          2      > JMPZ                                                     ~1, ->4
   19     3    >   ASSIGN                                                   !0, 'I+AM+A+BOOLEAN'
   21     4    > > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
183.14 ms | 1460 KiB | 15 Q