3v4l.org

run code in 300+ PHP versions simultaneously
<?php $y = new stdClass; $x['token'] = [bin2hex(random_bytes(16))]; $y->token = $x; var_dump(json_encode($y));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ScujO
function name:  (null)
number of ops:  21
compiled vars:  !0 = $y, !1 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $2      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    4     3        INIT_FCALL                                               'bin2hex'
          4        INIT_FCALL                                               'random_bytes'
          5        SEND_VAL                                                 16
          6        DO_ICALL                                         $6      
          7        SEND_VAR                                                 $6
          8        DO_ICALL                                         $7      
          9        INIT_ARRAY                                       ~8      $7
         10        ASSIGN_DIM                                               !1, 'token'
         11        OP_DATA                                                  ~8
    6    12        ASSIGN_OBJ                                               !0, 'token'
         13        OP_DATA                                                  !1
    8    14        INIT_FCALL                                               'var_dump'
         15        INIT_FCALL                                               'json_encode'
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                         $10     
         18        SEND_VAR                                                 $10
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.97 ms | 1395 KiB | 21 Q