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', ]; $user_notif->news = 'asdasd'; 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/Z6rKI
function name:  (null)
number of ops:  18
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>
   12     2        ASSIGN_OBJ                                               !1, 'news'
          3        OP_DATA                                                  'asdasd'
   14     4        INIT_FCALL                                               'var_dump'
          5        INIT_FCALL                                               'json_decode'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $5      
          8        TYPE_CHECK                                  256  ~6      $5
          9        SEND_VAL                                                 ~6
         10        DO_ICALL                                                 
   16    11        INIT_FCALL                                               'var_dump'
         12        INIT_FCALL                                               'json_encode'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                         $8      
         15        SEND_VAR                                                 $8
         16        DO_ICALL                                                 
   18    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
181.65 ms | 942 KiB | 20 Q