3v4l.org

run code in 500+ 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 = 5, Position 2 = 9
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
filename:       /in/WWqEi
function name:  {closure:/in/WWqEi:5}
number of ops:  10
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        FRAMELESS_ICALL_2                str_contains        ~3      !1, 'multi'
          4      > JMPZ                                                         ~3, ->9
    8     5    >   ROPE_INIT                                         3  ~5      'Error+on+round+'
          6        ROPE_ADD                                          1  ~5      ~5, !2
          7        ROPE_END                                          2  ~4      ~5, '%0A'
          8        ECHO                                                         ~4
   10     9    > > RETURN                                                       null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
161.16 ms | 1443 KiB | 17 Q