3v4l.org

run code in 300+ PHP versions simultaneously
<?php $current = null; $count = 0; //while ($current !== 0) { $count++; $bytes = openssl_random_pseudo_bytes(1); $long = unpack("S", $bytes); var_dump($long); //}
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/C76AT
function name:  (null)
number of ops:  16
compiled vars:  !0 = $current, !1 = $count, !2 = $bytes, !3 = $long
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, null
    4     1        ASSIGN                                                   !1, 0
    8     2        PRE_INC                                                  !1
    9     3        INIT_FCALL_BY_NAME                                       'openssl_random_pseudo_bytes'
          4        SEND_VAL_EX                                              1
          5        DO_FCALL                                      0  $7      
          6        ASSIGN                                                   !2, $7
   10     7        INIT_FCALL                                               'unpack'
          8        SEND_VAL                                                 'S'
          9        SEND_VAR                                                 !2
         10        DO_ICALL                                         $9      
         11        ASSIGN                                                   !3, $9
   11    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !3
         14        DO_ICALL                                                 
   12    15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.59 ms | 1394 KiB | 17 Q