3v4l.org

run code in 300+ PHP versions simultaneously
<?php $key = '价格'; $doc = []; $value=$doc[$key] = "123"; var_dump($doc); if(is_numeric($value)) $doc[$key] = floatval($value); else unset($doc[$key]); var_dump($doc);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 16
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Fdo2k
function name:  (null)
number of ops:  21
compiled vars:  !0 = $key, !1 = $doc, !2 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%E4%BB%B7%E6%A0%BC'
    4     1        ASSIGN                                                   !1, <array>
    5     2        ASSIGN_DIM                                       ~5      !1, !0
          3        OP_DATA                                                  '123'
          4        ASSIGN                                                   !2, ~5
    6     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                                 
    8     8        INIT_FCALL                                               'is_numeric'
          9        SEND_VAR                                                 !2
         10        DO_ICALL                                         $8      
         11      > JMPZ                                                     $8, ->16
         12    >   CAST                                          5  ~10     !2
         13        ASSIGN_DIM                                               !1, !0
         14        OP_DATA                                                  ~10
         15      > JMP                                                      ->17
    9    16    >   UNSET_DIM                                                !1, !0
   11    17    >   INIT_FCALL                                               'var_dump'
         18        SEND_VAR                                                 !1
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.16 ms | 1395 KiB | 17 Q