3v4l.org

run code in 300+ PHP versions simultaneously
<?php $page = 1; $hasMore = true; $mockAfterThisCallsStop = 4; scrape: { if ($hasMore) { //... echo 'scrapping api page:'.$page.PHP_EOL; // do curl // check result if($page >= $mockAfterThisCallsStop) { $hasMore = false; } else { // fill vars for next iteration $page++; } goto scrape; } else { goto done; } } done: { echo 'All done...'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 14
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qF9mG
function name:  (null)
number of ops:  17
compiled vars:  !0 = $page, !1 = $hasMore, !2 = $mockAfterThisCallsStop
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 1
    3     1        ASSIGN                                                   !1, <true>
    5     2        ASSIGN                                                   !2, 4
    8     3    > > JMPZ                                                     !1, ->14
   11     4    >   CONCAT                                           ~6      'scrapping+api+page%3A', !0
          5        CONCAT                                           ~7      ~6, '%0A'
          6        ECHO                                                     ~7
   17     7        IS_SMALLER_OR_EQUAL                                      !2, !0
          8      > JMPZ                                                     ~8, ->11
   18     9    >   ASSIGN                                                   !1, <false>
   17    10      > JMP                                                      ->12
   22    11    >   PRE_INC                                                  !0
   25    12    > > JMP                                                      ->3
    8    13*       JMP                                                      ->15
   27    14    > > JMP                                                      ->15
   32    15    >   ECHO                                                     'All+done...'
   33    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
199.49 ms | 996 KiB | 13 Q