3v4l.org

run code in 300+ PHP versions simultaneously
<?php if(!function_exists('json_decode')) { return; } var_dump(json_decode('{ "a": 1, // Ciao! "b":2 }'));
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 6
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fXsp3
function name:  (null)
number of ops:  13
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'function_exists'
          1        SEND_VAL                                                 'json_decode'
          2        DO_ICALL                                         $0      
          3        BOOL_NOT                                         ~1      $0
          4      > JMPZ                                                     ~1, ->6
    3     5    > > RETURN                                                   null
    5     6    >   INIT_FCALL                                               'var_dump'
          7        INIT_FCALL                                               'json_decode'
          8        SEND_VAL                                                 '%7B%0A%09%22a%22%3A+1%2C%0A%09%2F%2F+Ciao%21%0A%09%22b%22%3A2%0A%7D'
          9        DO_ICALL                                         $2      
         10        SEND_VAR                                                 $2
         11        DO_ICALL                                                 
    9    12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.98 ms | 1394 KiB | 19 Q