3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = str_split(bin2hex(random_bytes(32)), 2); array_unshift($x, ''); echo implode('\\x', $x), "\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/L0UT9
function name:  (null)
number of ops:  22
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'str_split'
          1        INIT_FCALL                                               'bin2hex'
          2        INIT_FCALL                                               'random_bytes'
          3        SEND_VAL                                                 32
          4        DO_ICALL                                         $1      
          5        SEND_VAR                                                 $1
          6        DO_ICALL                                         $2      
          7        SEND_VAR                                                 $2
          8        SEND_VAL                                                 2
          9        DO_ICALL                                         $3      
         10        ASSIGN                                                   !0, $3
    4    11        INIT_FCALL                                               'array_unshift'
         12        SEND_REF                                                 !0
         13        SEND_VAL                                                 ''
         14        DO_ICALL                                                 
    5    15        INIT_FCALL                                               'implode'
         16        SEND_VAL                                                 '%5Cx'
         17        SEND_VAR                                                 !0
         18        DO_ICALL                                         $6      
         19        ECHO                                                     $6
         20        ECHO                                                     '%0A'
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.86 ms | 1386 KiB | 23 Q