3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i = 0; set_error_handler(function($errno, $errstr) { global $i; if (str_contains($errstr, "multi")) { echo "Error on round $i\n"; } }, E_NOTICE); while ($i < 10) { $randomBytes = random_bytes(16); $encoded = iconv('UTF-8', 'ASCII//TRANSLIT//IGNORE', $randomBytes); $i++; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 7
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 7
Branch analysis from position: 20
Branch analysis from position: 7
filename:       /in/WWqEi
function name:  (null)
number of ops:  21
compiled vars:  !0 = $i, !1 = $randomBytes, !2 = $encoded
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 0
    5     1        INIT_FCALL                                               'set_error_handler'
          2        DECLARE_LAMBDA_FUNCTION                          ~4      [0]
   10     3        SEND_VAL                                                 ~4
          4        SEND_VAL                                                 8
    5     5        DO_ICALL                                                 
   12     6      > JMP                                                      ->18
   13     7    >   INIT_FCALL                                               'random_bytes'
          8        SEND_VAL                                                 16
          9        DO_ICALL                                         $6      
         10        ASSIGN                                                   !1, $6
   14    11        INIT_FCALL_BY_NAME                                       'iconv'
         12        SEND_VAL_EX                                              'UTF-8'
         13        SEND_VAL_EX                                              'ASCII%2F%2FTRANSLIT%2F%2FIGNORE'
         14        SEND_VAR_EX                                              !1
         15        DO_FCALL                                      0  $8      
         16        ASSIGN                                                   !2, $8
   15    17        PRE_INC                                                  !0
   12    18    >   IS_SMALLER                                               !0, 10
         19      > JMPNZ                                                    ~11, ->7
   16    20    > > RETURN                                                   1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 12
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/WWqEi
function name:  {closure}
number of ops:  13
compiled vars:  !0 = $errno, !1 = $errstr, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    6     2        BIND_GLOBAL                                              !2, 'i'
    7     3        INIT_FCALL                                               'str_contains'
          4        SEND_VAR                                                 !1
          5        SEND_VAL                                                 'multi'
          6        DO_ICALL                                         $3      
          7      > JMPZ                                                     $3, ->12
    8     8    >   ROPE_INIT                                     3  ~5      'Error+on+round+'
          9        ROPE_ADD                                      1  ~5      ~5, !2
         10        ROPE_END                                      2  ~4      ~5, '%0A'
         11        ECHO                                                     ~4
   10    12    > > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.53 ms | 1444 KiB | 16 Q