3v4l.org

run code in 300+ PHP versions simultaneously
<?php function loadZoneDefintion() { // initial stuff $i = 1; $limit = 9; $array = array("A","B","C","D","E","F","G","H","I","J","K","L"); // foreach xml file/zone definition foreach ($array as $value) { // if counter is less than limit if ($i < $limit) { // foreach loops // process curl request echo "Counter: " . $i . ", Value: " . $value . " | "; // increment counter $i++; } // if counter has reached the limit else { echo "[PAUSE]"; $now = time(); $nowText = date("g:h:s", $now); $future = strtotime("+5 minutes", $now); $futureText = date("g:h:s", $future); echo "Now: " . $nowText; echo "Future: " . $futureText; // pause script due to rate limit //sleep(10); //time_sleep_until(); // reset counter $i = 1; echo "[RESET]"; } } } loadZoneDefintion();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BKAaX
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   48     0  E >   INIT_FCALL                                               'loadzonedefintion'
          1        DO_FCALL                                      0          
          2      > RETURN                                                   1

Function loadzonedefintion:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 40
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 40
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 14
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 39
Branch analysis from position: 39
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 40
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 40
filename:       /in/BKAaX
function name:  loadZoneDefintion
number of ops:  42
compiled vars:  !0 = $i, !1 = $limit, !2 = $array, !3 = $value, !4 = $now, !5 = $nowText, !6 = $future, !7 = $futureText
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                                   !0, 1
    6     1        ASSIGN                                                   !1, 9
    7     2        ASSIGN                                                   !2, <array>
   10     3      > FE_RESET_R                                       $11     !2, ->40
          4    > > FE_FETCH_R                                               $11, !3, ->40
   13     5    >   IS_SMALLER                                               !0, !1
          6      > JMPZ                                                     ~12, ->14
   17     7    >   CONCAT                                           ~13     'Counter%3A+', !0
          8        CONCAT                                           ~14     ~13, '%2C+Value%3A+'
          9        CONCAT                                           ~15     ~14, !3
         10        CONCAT                                           ~16     ~15, '+%7C+'
         11        ECHO                                                     ~16
   20    12        PRE_INC                                                  !0
         13      > JMP                                                      ->39
   24    14    >   ECHO                                                     '%5BPAUSE%5D'
   26    15        INIT_FCALL                                               'time'
         16        DO_ICALL                                         $18     
         17        ASSIGN                                                   !4, $18
   27    18        INIT_FCALL                                               'date'
         19        SEND_VAL                                                 'g%3Ah%3As'
         20        SEND_VAR                                                 !4
         21        DO_ICALL                                         $20     
         22        ASSIGN                                                   !5, $20
   29    23        INIT_FCALL                                               'strtotime'
         24        SEND_VAL                                                 '%2B5+minutes'
         25        SEND_VAR                                                 !4
         26        DO_ICALL                                         $22     
         27        ASSIGN                                                   !6, $22
   30    28        INIT_FCALL                                               'date'
         29        SEND_VAL                                                 'g%3Ah%3As'
         30        SEND_VAR                                                 !6
         31        DO_ICALL                                         $24     
         32        ASSIGN                                                   !7, $24
   32    33        CONCAT                                           ~26     'Now%3A+', !5
         34        ECHO                                                     ~26
   33    35        CONCAT                                           ~27     'Future%3A+', !7
         36        ECHO                                                     ~27
   40    37        ASSIGN                                                   !0, 1
   42    38        ECHO                                                     '%5BRESET%5D'
   10    39    > > JMP                                                      ->4
         40    >   FE_FREE                                                  $11
   47    41      > RETURN                                                   null

End of function loadzonedefintion

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.47 ms | 1402 KiB | 20 Q