3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '{"id":10}'; $obj = json_decode($json, TRUE); if(isset($obj['count'])) { echo "isset \n"; } if($obj['count']===null) { echo "equal null \n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 9
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 13
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
Branch analysis from position: 9
filename:       /in/9CYX5
function name:  (null)
number of ops:  14
compiled vars:  !0 = $json, !1 = $obj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%7B%22id%22%3A10%7D'
    4     1        INIT_FCALL                                               'json_decode'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 <true>
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !1, $3
    5     6        ISSET_ISEMPTY_DIM_OBJ                         0          !1, 'count'
          7      > JMPZ                                                     ~5, ->9
    7     8    >   ECHO                                                     'isset+%0A'
    9     9    >   FETCH_DIM_R                                      ~6      !1, 'count'
         10        TYPE_CHECK                                    2          ~6
         11      > JMPZ                                                     ~7, ->13
   11    12    >   ECHO                                                     'equal+null+%0A'
   12    13    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.31 ms | 1394 KiB | 15 Q