3v4l.org

run code in 300+ PHP versions simultaneously
<?php $y = new stdClass; $x = 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/ZcjKL
function name:  (null)
number of ops:  19
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                                         $5      
          7        SEND_VAR                                                 $5
          8        DO_ICALL                                         $6      
          9        ASSIGN                                                   !1, $6
    6    10        ASSIGN_OBJ                                               !0, 'token'
         11        OP_DATA                                                  !1
    8    12        INIT_FCALL                                               'var_dump'
         13        INIT_FCALL                                               'json_encode'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                         $9      
         16        SEND_VAR                                                 $9
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.46 ms | 1394 KiB | 21 Q