3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('US/Mountain'); //$_POST['email'] = "test@test.com"; $myRegimen = $_GET['regimen']; $to_address = $_GET['email']; $regURL = file_get_contents("http://www.limitlessww.com/regimens.php"); $json = json_decode($regURL); //$regimens = json_decode($regURL, TRUE); //print_r(json_last_error()); // call after json_decode foreach($json->regimens as $item) { if($item->fid == $myRegimen) { $regimenName = $item->name; foreach($item->morning as $mornprods) { $morningProds .= $mornprods . '\r\n'; } foreach($item->afternoon as $afterprods) { $afternoonProds .= $afterprods . '\r\n'; } foreach($item->evening as $eveprods) { $eveningProds .= $eveprods . '\r\n'; } } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 19, Position 2 = 47
Branch analysis from position: 19
2 jumps found. (Code = 78) Position 1 = 20, Position 2 = 47
Branch analysis from position: 20
2 jumps found. (Code = 43) Position 1 = 23, Position 2 = 46
Branch analysis from position: 23
2 jumps found. (Code = 77) Position 1 = 27, Position 2 = 31
Branch analysis from position: 27
2 jumps found. (Code = 78) Position 1 = 28, Position 2 = 31
Branch analysis from position: 28
1 jumps found. (Code = 42) Position 1 = 27
Branch analysis from position: 27
Branch analysis from position: 31
2 jumps found. (Code = 77) Position 1 = 34, Position 2 = 38
Branch analysis from position: 34
2 jumps found. (Code = 78) Position 1 = 35, Position 2 = 38
Branch analysis from position: 35
1 jumps found. (Code = 42) Position 1 = 34
Branch analysis from position: 34
Branch analysis from position: 38
2 jumps found. (Code = 77) Position 1 = 41, Position 2 = 45
Branch analysis from position: 41
2 jumps found. (Code = 78) Position 1 = 42, Position 2 = 45
Branch analysis from position: 42
1 jumps found. (Code = 42) Position 1 = 41
Branch analysis from position: 41
Branch analysis from position: 45
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
Branch analysis from position: 45
Branch analysis from position: 38
Branch analysis from position: 31
Branch analysis from position: 46
Branch analysis from position: 47
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 47
filename:       /in/42YEU
function name:  (null)
number of ops:  49
compiled vars:  !0 = $myRegimen, !1 = $to_address, !2 = $regURL, !3 = $json, !4 = $item, !5 = $regimenName, !6 = $mornprods, !7 = $morningProds, !8 = $afterprods, !9 = $afternoonProds, !10 = $eveprods, !11 = $eveningProds
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'date_default_timezone_set'
          1        SEND_VAL                                                 'US%2FMountain'
          2        DO_ICALL                                                 
    7     3        FETCH_R                      global              ~13     '_GET'
          4        FETCH_DIM_R                                      ~14     ~13, 'regimen'
          5        ASSIGN                                                   !0, ~14
    8     6        FETCH_R                      global              ~16     '_GET'
          7        FETCH_DIM_R                                      ~17     ~16, 'email'
          8        ASSIGN                                                   !1, ~17
   10     9        INIT_FCALL                                               'file_get_contents'
         10        SEND_VAL                                                 'http%3A%2F%2Fwww.limitlessww.com%2Fregimens.php'
         11        DO_ICALL                                         $19     
         12        ASSIGN                                                   !2, $19
   11    13        INIT_FCALL                                               'json_decode'
         14        SEND_VAR                                                 !2
         15        DO_ICALL                                         $21     
         16        ASSIGN                                                   !3, $21
   17    17        FETCH_OBJ_R                                      ~23     !3, 'regimens'
         18      > FE_RESET_R                                       $24     ~23, ->47
         19    > > FE_FETCH_R                                               $24, !4, ->47
   19    20    >   FETCH_OBJ_R                                      ~25     !4, 'fid'
         21        IS_EQUAL                                                 !0, ~25
         22      > JMPZ                                                     ~26, ->46
   21    23    >   FETCH_OBJ_R                                      ~27     !4, 'name'
         24        ASSIGN                                                   !5, ~27
   23    25        FETCH_OBJ_R                                      ~29     !4, 'morning'
         26      > FE_RESET_R                                       $30     ~29, ->31
         27    > > FE_FETCH_R                                               $30, !6, ->31
   25    28    >   CONCAT                                           ~31     !6, '%5Cr%5Cn'
         29        ASSIGN_OP                                     8          !7, ~31
   23    30      > JMP                                                      ->27
         31    >   FE_FREE                                                  $30
   27    32        FETCH_OBJ_R                                      ~33     !4, 'afternoon'
         33      > FE_RESET_R                                       $34     ~33, ->38
         34    > > FE_FETCH_R                                               $34, !8, ->38
   29    35    >   CONCAT                                           ~35     !8, '%5Cr%5Cn'
         36        ASSIGN_OP                                     8          !9, ~35
   27    37      > JMP                                                      ->34
         38    >   FE_FREE                                                  $34
   31    39        FETCH_OBJ_R                                      ~37     !4, 'evening'
         40      > FE_RESET_R                                       $38     ~37, ->45
         41    > > FE_FETCH_R                                               $38, !10, ->45
   33    42    >   CONCAT                                           ~39     !10, '%5Cr%5Cn'
         43        ASSIGN_OP                                     8          !11, ~39
   31    44      > JMP                                                      ->41
         45    >   FE_FREE                                                  $38
   17    46    > > JMP                                                      ->19
         47    >   FE_FREE                                                  $24
   36    48      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.77 ms | 1400 KiB | 19 Q