3v4l.org

run code in 300+ PHP versions simultaneously
<?php $value = json_encode( array( 'n' => 'foo' ) ); if ( null !== ( $decoded = json_decode( $value, true ) ) && isset( $decoded['l'] ) ) { var_dump( $decoded['l'] ); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 18
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
Branch analysis from position: 13
filename:       /in/O1rto
function name:  (null)
number of ops:  19
compiled vars:  !0 = $value, !1 = $decoded
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'json_encode'
          1        SEND_VAL                                                 <array>
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
    6     4        INIT_FCALL                                               'json_decode'
          5        SEND_VAR                                                 !0
          6        SEND_VAL                                                 <true>
          7        DO_ICALL                                         $4      
          8        ASSIGN                                           ~5      !1, $4
          9        TYPE_CHECK                                  1020  ~6      ~5
         10      > JMPZ_EX                                          ~6      ~6, ->13
    7    11    >   ISSET_ISEMPTY_DIM_OBJ                         0  ~7      !1, 'l'
         12        BOOL                                             ~6      ~7
         13    > > JMPZ                                                     ~6, ->18
    9    14    >   INIT_FCALL                                               'var_dump'
         15        FETCH_DIM_R                                      ~8      !1, 'l'
         16        SEND_VAL                                                 ~8
         17        DO_ICALL                                                 
   10    18    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.22 ms | 1395 KiB | 19 Q