3v4l.org

run code in 300+ PHP versions simultaneously
<?php //echo phpinfo(); // date_default_timezone_set('US/Mountain'); //$_POST['email'] = "test@test.com"; $myRegimen = "slim1"; $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) { echo "got here"; if($item->fid == $myRegimen) { $regimenName = $item->name; echo "got here"; 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 = 11, Position 2 = 41
Branch analysis from position: 11
2 jumps found. (Code = 78) Position 1 = 12, Position 2 = 41
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 40
Branch analysis from position: 16
2 jumps found. (Code = 77) Position 1 = 21, Position 2 = 25
Branch analysis from position: 21
2 jumps found. (Code = 78) Position 1 = 22, Position 2 = 25
Branch analysis from position: 22
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
Branch analysis from position: 25
2 jumps found. (Code = 77) Position 1 = 28, Position 2 = 32
Branch analysis from position: 28
2 jumps found. (Code = 78) Position 1 = 29, Position 2 = 32
Branch analysis from position: 29
1 jumps found. (Code = 42) Position 1 = 28
Branch analysis from position: 28
Branch analysis from position: 32
2 jumps found. (Code = 77) Position 1 = 35, Position 2 = 39
Branch analysis from position: 35
2 jumps found. (Code = 78) Position 1 = 36, Position 2 = 39
Branch analysis from position: 36
1 jumps found. (Code = 42) Position 1 = 35
Branch analysis from position: 35
Branch analysis from position: 39
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 39
Branch analysis from position: 32
Branch analysis from position: 25
Branch analysis from position: 40
Branch analysis from position: 41
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 41
filename:       /in/Z29mM
function name:  (null)
number of ops:  43
compiled vars:  !0 = $myRegimen, !1 = $regURL, !2 = $json, !3 = $item, !4 = $regimenName, !5 = $mornprods, !6 = $morningProds, !7 = $afterprods, !8 = $afternoonProds, !9 = $eveprods, !10 = $eveningProds
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ASSIGN                                                   !0, 'slim1'
    8     1        INIT_FCALL                                               'file_get_contents'
          2        SEND_VAL                                                 'http%3A%2F%2Fwww.limitlessww.com%2Fregimens.php'
          3        DO_ICALL                                         $12     
          4        ASSIGN                                                   !1, $12
    9     5        INIT_FCALL                                               'json_decode'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                         $14     
          8        ASSIGN                                                   !2, $14
   15     9        FETCH_OBJ_R                                      ~16     !2, 'regimens'
         10      > FE_RESET_R                                       $17     ~16, ->41
         11    > > FE_FETCH_R                                               $17, !3, ->41
   17    12    >   ECHO                                                     'got+here'
   18    13        FETCH_OBJ_R                                      ~18     !3, 'fid'
         14        IS_EQUAL                                                 !0, ~18
         15      > JMPZ                                                     ~19, ->40
   20    16    >   FETCH_OBJ_R                                      ~20     !3, 'name'
         17        ASSIGN                                                   !4, ~20
   21    18        ECHO                                                     'got+here'
   23    19        FETCH_OBJ_R                                      ~22     !3, 'morning'
         20      > FE_RESET_R                                       $23     ~22, ->25
         21    > > FE_FETCH_R                                               $23, !5, ->25
   25    22    >   CONCAT                                           ~24     !5, '%5Cr%5Cn'
         23        ASSIGN_OP                                     8          !6, ~24
   23    24      > JMP                                                      ->21
         25    >   FE_FREE                                                  $23
   27    26        FETCH_OBJ_R                                      ~26     !3, 'afternoon'
         27      > FE_RESET_R                                       $27     ~26, ->32
         28    > > FE_FETCH_R                                               $27, !7, ->32
   29    29    >   CONCAT                                           ~28     !7, '%5Cr%5Cn'
         30        ASSIGN_OP                                     8          !8, ~28
   27    31      > JMP                                                      ->28
         32    >   FE_FREE                                                  $27
   31    33        FETCH_OBJ_R                                      ~30     !3, 'evening'
         34      > FE_RESET_R                                       $31     ~30, ->39
         35    > > FE_FETCH_R                                               $31, !9, ->39
   33    36    >   CONCAT                                           ~32     !9, '%5Cr%5Cn'
         37        ASSIGN_OP                                     8          !10, ~32
   31    38      > JMP                                                      ->35
         39    >   FE_FREE                                                  $31
   15    40    > > JMP                                                      ->11
         41    >   FE_FREE                                                  $17
   36    42      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.97 ms | 1405 KiB | 17 Q