3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
178.9 ms | 939 KiB | 20 Q