3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = '{"aasd":0}'; $user_notif = [ 'requests' => '0', 'offers' => '0', 'price_contests' => '0', 'orders' => '0', 'users' => '0', 'news' => '1' ]; var_dump(is_object(json_decode($a))); var_dump(json_encode($user_notif)); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SIJj9
function name:  (null)
number of ops:  16
compiled vars:  !0 = $a, !1 = $user_notif
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%7B%22aasd%22%3A0%7D'
    4     1        ASSIGN                                                   !1, <array>
   13     2        INIT_FCALL                                               'var_dump'
          3        INIT_FCALL                                               'json_decode'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $4      
          6        TYPE_CHECK                                  256  ~5      $4
          7        SEND_VAL                                                 ~5
          8        DO_ICALL                                                 
   15     9        INIT_FCALL                                               'var_dump'
         10        INIT_FCALL                                               'json_encode'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                         $7      
         13        SEND_VAR                                                 $7
         14        DO_ICALL                                                 
   17    15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.48 ms | 1394 KiB | 19 Q