3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.99 ms | 1394 KiB | 17 Q