3v4l.org

run code in 300+ PHP versions simultaneously
<?php $c = 0; while ($c++ != 5) { // here is curl request, doesn't relevant so I have removed it preg_match("!<.*?>(\S*)[^<>]*?{$to}<!", $resp, $result) ; // echo 'cnt = ' .count($result).'<br>'; if(!count($result)) { $amount = 0; echo 'sleep called'; sleep(4); exit; continue; } else { $amount = trim(@$result[1]); $amount = round($amount + $amount * $exchange_ratio, $precision); echo 'break happen<br>'; break; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 41
Branch analysis from position: 41
2 jumps found. (Code = 44) Position 1 = 44, Position 2 = 2
Branch analysis from position: 44
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 25
Branch analysis from position: 17
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 25
1 jumps found. (Code = 42) Position 1 = 44
Branch analysis from position: 44
filename:       /in/jtEYS
function name:  (null)
number of ops:  45
compiled vars:  !0 = $c, !1 = $to, !2 = $resp, !3 = $result, !4 = $amount, !5 = $exchange_ratio, !6 = $precision
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 0
    4     1      > JMP                                                      ->41
    8     2    >   INIT_FCALL                                               'preg_match'
          3        ROPE_INIT                                     3  ~9      '%21%3C.%2A%3F%3E%28%5CS%2A%29%5B%5E%3C%3E%5D%2A%3F'
          4        ROPE_ADD                                      1  ~9      ~9, !1
          5        ROPE_END                                      2  ~8      ~9, '%3C%21'
          6        SEND_VAL                                                 ~8
          7        SEND_VAR                                                 !2
          8        SEND_REF                                                 !3
          9        DO_ICALL                                                 
   10    10        COUNT                                            ~12     !3
         11        CONCAT                                           ~13     'cnt+%3D+', ~12
         12        CONCAT                                           ~14     ~13, '%3Cbr%3E'
         13        ECHO                                                     ~14
   11    14        COUNT                                            ~15     !3
         15        BOOL_NOT                                         ~16     ~15
         16      > JMPZ                                                     ~16, ->25
   13    17    >   ASSIGN                                                   !4, 0
   14    18        ECHO                                                     'sleep+called'
   15    19        INIT_FCALL                                               'sleep'
         20        SEND_VAL                                                 4
         21        DO_ICALL                                                 
   16    22      > EXIT                                                     
   17    23*       JMP                                                      ->41
         24*       JMP                                                      ->41
   21    25    >   INIT_FCALL                                               'trim'
         26        BEGIN_SILENCE                                    ~19     
         27        FETCH_DIM_R                                      ~20     !3, 1
         28        END_SILENCE                                              ~19
         29        SEND_VAL                                                 ~20
         30        DO_ICALL                                         $21     
         31        ASSIGN                                                   !4, $21
   22    32        INIT_FCALL                                               'round'
         33        MUL                                              ~23     !4, !5
         34        ADD                                              ~24     !4, ~23
         35        SEND_VAL                                                 ~24
         36        SEND_VAR                                                 !6
         37        DO_ICALL                                         $25     
         38        ASSIGN                                                   !4, $25
   23    39        ECHO                                                     'break+happen%3Cbr%3E'
   24    40      > JMP                                                      ->44
    4    41    >   POST_INC                                         ~27     !0
         42        IS_NOT_EQUAL                                             ~27, 5
         43      > JMPNZ                                                    ~28, ->2
   26    44    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.61 ms | 1400 KiB | 21 Q