3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = json_decode('{}'); $b = json_decode('{}', true); var_dump($a); var_dump($b); var_dump(empty($a)); var_dump(empty($b));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dquIq
function name:  (null)
number of ops:  24
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'json_decode'
          1        SEND_VAL                                                 '%7B%7D'
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
    4     4        INIT_FCALL                                               'json_decode'
          5        SEND_VAL                                                 '%7B%7D'
          6        SEND_VAL                                                 <true>
          7        DO_ICALL                                         $4      
          8        ASSIGN                                                   !1, $4
    6     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                                 
    7    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                                 
    9    15        INIT_FCALL                                               'var_dump'
         16        ISSET_ISEMPTY_CV                                 ~8      !0
         17        SEND_VAL                                                 ~8
         18        DO_ICALL                                                 
   10    19        INIT_FCALL                                               'var_dump'
         20        ISSET_ISEMPTY_CV                                 ~10     !1
         21        SEND_VAL                                                 ~10
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.7 ms | 1395 KiB | 17 Q