3v4l.org

run code in 300+ PHP versions simultaneously
<?php $health = array('healthy', 'fit', 'happy'); $wealth = array('Bank Account' => 15000000, 'House' => 'Mansion on the water','Net Worth' => '65000000 net worth'); $stuff = array('cars'=> array('Ferrari California','Lexus RC', 'Mercedes AMG', 'Range Rover'), 'toys'=> array('yacht', 'jet skis','private jet','pool house','man cave', 'vacation homes', 'spa', 'golf', 'bbqs', 'private dinners', 'f cups')); $relationships = array('danee', 'family', 'friends', 'universe', 'my creator'); $success = array('famous', 'billion dollar business', 'ceo', 'actor', 'opportunities', 'investments'); $myLife = array('health' => $health,'wealth' => $wealth, 'relationships' => $relationships, 'success' => $success, 'stuff' => $stuff); function element($array) { for ($i=0; $i < count($array); $i++) { echo $array[$i] . ', '; } } echo 'I have an amazing life.</br></br>'; echo 'In health, ' . 'I have ' ; for($i=0;$i<count($health); $i++) { echo $health[$i] . ', '; } echo '</br></br>'; echo 'In wealth, I have ' ; foreach($wealth as $element=>$what){ echo $what . ', '; } echo '</br></br>'; echo 'In relationships, I have '; for($i=0;$i<count($relationships); $i++) { echo $relationships[$i] . ', ';} echo '</br></br>'; echo 'In success, I have '; for($i=0;$i<count($success); $i++) { echo $success[$i] . ', ';} echo '</br></br>';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 15
Branch analysis from position: 22
2 jumps found. (Code = 77) Position 1 = 25, Position 2 = 30
Branch analysis from position: 25
2 jumps found. (Code = 78) Position 1 = 26, Position 2 = 30
Branch analysis from position: 26
1 jumps found. (Code = 42) Position 1 = 25
Branch analysis from position: 25
Branch analysis from position: 30
1 jumps found. (Code = 42) Position 1 = 39
Branch analysis from position: 39
2 jumps found. (Code = 44) Position 1 = 42, Position 2 = 35
Branch analysis from position: 42
1 jumps found. (Code = 42) Position 1 = 50
Branch analysis from position: 50
2 jumps found. (Code = 44) Position 1 = 53, Position 2 = 46
Branch analysis from position: 53
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 46
2 jumps found. (Code = 44) Position 1 = 53, Position 2 = 46
Branch analysis from position: 53
Branch analysis from position: 46
Branch analysis from position: 35
2 jumps found. (Code = 44) Position 1 = 42, Position 2 = 35
Branch analysis from position: 42
Branch analysis from position: 35
Branch analysis from position: 30
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 15
Branch analysis from position: 22
Branch analysis from position: 15
filename:       /in/ZF8Ko
function name:  (null)
number of ops:  55
compiled vars:  !0 = $health, !1 = $wealth, !2 = $stuff, !3 = $relationships, !4 = $success, !5 = $myLife, !6 = $i, !7 = $what, !8 = $element
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        ASSIGN                                                   !1, <array>
    7     2        ASSIGN                                                   !2, <array>
   11     3        ASSIGN                                                   !3, <array>
   13     4        ASSIGN                                                   !4, <array>
   15     5        INIT_ARRAY                                       ~14     !0, 'health'
          6        ADD_ARRAY_ELEMENT                                ~14     !1, 'wealth'
          7        ADD_ARRAY_ELEMENT                                ~14     !3, 'relationships'
          8        ADD_ARRAY_ELEMENT                                ~14     !4, 'success'
          9        ADD_ARRAY_ELEMENT                                ~14     !2, 'stuff'
         10        ASSIGN                                                   !5, ~14
   28    11        ECHO                                                     'I+have+an+amazing+life.%3C%2Fbr%3E%3C%2Fbr%3E'
   30    12        ECHO                                                     'In+health%2C+I+have+'
   32    13        ASSIGN                                                   !6, 0
         14      > JMP                                                      ->19
   33    15    >   FETCH_DIM_R                                      ~17     !0, !6
         16        CONCAT                                           ~18     ~17, '%2C+'
         17        ECHO                                                     ~18
   32    18        PRE_INC                                                  !6
         19    >   COUNT                                            ~20     !0
         20        IS_SMALLER                                               !6, ~20
         21      > JMPNZ                                                    ~21, ->15
   36    22    >   ECHO                                                     '%3C%2Fbr%3E%3C%2Fbr%3E'
   38    23        ECHO                                                     'In+wealth%2C+I+have+'
   40    24      > FE_RESET_R                                       $22     !1, ->30
         25    > > FE_FETCH_R                                       ~23     $22, !7, ->30
         26    >   ASSIGN                                                   !8, ~23
   41    27        CONCAT                                           ~25     !7, '%2C+'
         28        ECHO                                                     ~25
   40    29      > JMP                                                      ->25
         30    >   FE_FREE                                                  $22
   45    31        ECHO                                                     '%3C%2Fbr%3E%3C%2Fbr%3E'
   47    32        ECHO                                                     'In+relationships%2C+I+have+'
   49    33        ASSIGN                                                   !6, 0
         34      > JMP                                                      ->39
   50    35    >   FETCH_DIM_R                                      ~27     !3, !6
         36        CONCAT                                           ~28     ~27, '%2C+'
         37        ECHO                                                     ~28
   49    38        PRE_INC                                                  !6
         39    >   COUNT                                            ~30     !3
         40        IS_SMALLER                                               !6, ~30
         41      > JMPNZ                                                    ~31, ->35
   52    42    >   ECHO                                                     '%3C%2Fbr%3E%3C%2Fbr%3E'
   54    43        ECHO                                                     'In+success%2C+I+have+'
   56    44        ASSIGN                                                   !6, 0
         45      > JMP                                                      ->50
   57    46    >   FETCH_DIM_R                                      ~33     !4, !6
         47        CONCAT                                           ~34     ~33, '%2C+'
         48        ECHO                                                     ~34
   56    49        PRE_INC                                                  !6
         50    >   COUNT                                            ~36     !4
         51        IS_SMALLER                                               !6, ~36
         52      > JMPNZ                                                    ~37, ->46
   59    53    >   ECHO                                                     '%3C%2Fbr%3E%3C%2Fbr%3E'
         54      > RETURN                                                   1

Function element:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 3
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 3
Branch analysis from position: 10
Branch analysis from position: 3
filename:       /in/ZF8Ko
function name:  element
number of ops:  11
compiled vars:  !0 = $array, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   21     0  E >   RECV                                             !0      
   22     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->7
   23     3    >   FETCH_DIM_R                                      ~3      !0, !1
          4        CONCAT                                           ~4      ~3, '%2C+'
          5        ECHO                                                     ~4
   22     6        PRE_INC                                                  !1
          7    >   COUNT                                            ~6      !0
          8        IS_SMALLER                                               !1, ~6
          9      > JMPNZ                                                    ~7, ->3
   25    10    > > RETURN                                                   null

End of function element

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.78 ms | 1403 KiB | 13 Q