3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array = ["arr"=>["0", "1", "2"], "integer_value"=>"3", "float_value"=>"-0.5"]; array_walk_recursive($array, function(&$value, $key) { if(is_numeric($value)) { $value = (string)((int)$value)===$value ?(int)$value :(double)$value; } }); var_dump($array);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/q7OOk
function name:  (null)
number of ops:  10
compiled vars:  !0 = $array
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
    4     1        INIT_FCALL                                                   'array_walk_recursive'
          2        SEND_REF                                                     !0
          3        DECLARE_LAMBDA_FUNCTION                              ~2      [0]
   12     4        SEND_VAL                                                     ~2
    4     5        DO_ICALL                                                     
   13     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 = 4, Position 2 = 14
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 11
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/q7OOk
function name:  {closure:/in/q7OOk:4}
number of ops:  15
compiled vars:  !0 = $value, !1 = $key
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   RECV                                                 !0      
          1        RECV                                                 !1      
    6     2        FRAMELESS_ICALL_1                is_numeric          ~2      !0
          3      > JMPZ                                                         ~2, ->14
    8     4    >   CAST                                              4  ~3      !0
          5        CAST                                              6  ~4      ~3
          6        IS_IDENTICAL                                                 !0, ~4
          7      > JMPZ                                                         ~5, ->11
    9     8    >   CAST                                              4  ~6      !0
          9        QM_ASSIGN                                            ~7      ~6
         10      > JMP                                                          ->13
   10    11    >   CAST                                              5  ~8      !0
         12        QM_ASSIGN                                            ~7      ~8
    8    13    >   ASSIGN                                                       !0, ~7
   12    14    > > RETURN                                                       null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
157.79 ms | 2891 KiB | 15 Q