3v4l.org

run code in 300+ PHP versions simultaneously
<?php $key = '价格'; $doc = []; $value=$doc[$key] = null; var_dump($doc); if($value == '0' || 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 = 47) Position 1 = 10, Position 2 = 14
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 19
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/EVQfs
function name:  (null)
number of ops:  24
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                                                  null
          4        ASSIGN                                                   !2, ~5
    6     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                                 
    8     8        IS_EQUAL                                         ~8      !2, '0'
          9      > JMPNZ_EX                                         ~8      ~8, ->14
         10    >   INIT_FCALL                                               'is_numeric'
         11        SEND_VAR                                                 !2
         12        DO_ICALL                                         $9      
         13        BOOL                                             ~8      $9
         14    > > JMPZ                                                     ~8, ->19
         15    >   CAST                                          5  ~11     !2
         16        ASSIGN_DIM                                               !1, !0
         17        OP_DATA                                                  ~11
         18      > JMP                                                      ->20
    9    19    >   UNSET_DIM                                                !1, !0
   11    20    >   INIT_FCALL                                               'var_dump'
         21        SEND_VAR                                                 !1
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.03 ms | 1387 KiB | 17 Q