3v4l.org

run code in 300+ PHP versions simultaneously
<?php $bytes = random_bytes(100); var_dump(json_encode(['binary_data' => $bytes]));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7O7Z5
function name:  (null)
number of ops:  12
compiled vars:  !0 = $bytes
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'random_bytes'
          1        SEND_VAL                                                 100
          2        DO_ICALL                                         $1      
          3        ASSIGN                                                   !0, $1
    5     4        INIT_FCALL                                               'var_dump'
          5        INIT_FCALL                                               'json_encode'
          6        INIT_ARRAY                                       ~3      !0, 'binary_data'
          7        SEND_VAL                                                 ~3
          8        DO_ICALL                                         $4      
          9        SEND_VAR                                                 $4
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
136.7 ms | 1437 KiB | 16 Q