3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = ["arr"=>["0", "1", "2"], "integer_value"=>"3", "float_value"=>"-0.5"]; array_walk_recursive($array, function($key, &$value) { 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/tvE5b
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                                  '%00%7Bclosure%7D%2Fin%2FtvE5b%3A4%240'
   12     4        SEND_VAL                                                 ~2
          5        DO_ICALL                                                 
   13     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FtvE5b%3A4%240:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 16
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 13
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/tvE5b
function name:  {closure}
number of ops:  17
compiled vars:  !0 = $key, !1 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    6     2        INIT_FCALL                                               'is_numeric'
          3        SEND_VAR                                                 !1
          4        DO_ICALL                                         $2      
          5      > JMPZ                                                     $2, ->16
    8     6    >   CAST                                          4  ~3      !1
          7        CAST                                          6  ~4      ~3
          8        IS_EQUAL                                                 !1, ~4
          9      > JMPZ                                                     ~5, ->13
    9    10    >   CAST                                          4  ~6      !1
         11        QM_ASSIGN                                        ~7      ~6
         12      > JMP                                                      ->15
   10    13    >   CAST                                          5  ~8      !1
         14        QM_ASSIGN                                        ~7      ~8
    8    15    >   ASSIGN                                                   !1, ~7
   12    16    > > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FtvE5b%3A4%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
206.77 ms | 1396 KiB | 19 Q