3v4l.org

run code in 300+ PHP versions simultaneously
<?php $bytes = openssl_random_pseudo_bytes(100); echo strlen($text); # počet bytů echo "\n"; echo mb_strlen($text); # počet znaků echo "\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3FVCJ
function name:  (null)
number of ops:  13
compiled vars:  !0 = $bytes, !1 = $text
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL_BY_NAME                                       'openssl_random_pseudo_bytes'
          1        SEND_VAL_EX                                              100
          2        DO_FCALL                                      0  $2      
          3        ASSIGN                                                   !0, $2
    5     4        STRLEN                                           ~4      !1
          5        ECHO                                                     ~4
    6     6        ECHO                                                     '%0A'
    7     7        INIT_FCALL                                               'mb_strlen'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                         $5      
         10        ECHO                                                     $5
    8    11        ECHO                                                     '%0A'
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
186.89 ms | 1398 KiB | 15 Q