3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.21 ms | 1394 KiB | 21 Q