3v4l.org

run code in 300+ PHP versions simultaneously
<?php $value = "0.7.4"; if(!empty($value)) { $jsonValue = json_decode($value); if(!empty($jsonValue)) $value = $jsonValue; } print_r( $value,false); ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 12
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 12
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
Branch analysis from position: 12
filename:       /in/gX4vM
function name:  (null)
number of ops:  17
compiled vars:  !0 = $value, !1 = $jsonValue
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '0.7.4'
    5     1        ISSET_ISEMPTY_CV                                 ~3      !0
          2        BOOL_NOT                                         ~4      ~3
          3      > JMPZ                                                     ~4, ->12
    7     4    >   INIT_FCALL                                               'json_decode'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $5      
          7        ASSIGN                                                   !1, $5
    8     8        ISSET_ISEMPTY_CV                                 ~7      !1
          9        BOOL_NOT                                         ~8      ~7
         10      > JMPZ                                                     ~8, ->12
         11    >   ASSIGN                                                   !0, !1
   11    12    >   INIT_FCALL                                               'print_r'
         13        SEND_VAR                                                 !0
         14        SEND_VAL                                                 <false>
         15        DO_ICALL                                                 
   14    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.17 ms | 1395 KiB | 17 Q