3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fruits = array("more" => "apple", "less"=>"orange", "some"=>"banana"); foreach($fruits as &$fruit){ $fruit .= "s"; } foreach($fruits as $quantity => $fruit){ echo "I would like $quantity ".$fruit.". <br/>"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 125) Position 1 = 2, Position 2 = 5
Branch analysis from position: 2
2 jumps found. (Code = 126) Position 1 = 3, Position 2 = 5
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 5
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 16
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 16
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
Branch analysis from position: 5
filename:       /in/eHdOS
function name:  (null)
number of ops:  18
compiled vars:  !0 = $fruits, !1 = $fruit, !2 = $quantity
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    4     1      > FE_RESET_RW                                      $4      !0, ->5
          2    > > FE_FETCH_RW                                              $4, !1, ->5
    5     3    >   ASSIGN_OP                                     8          !1, 's'
    4     4      > JMP                                                      ->2
          5    >   FE_FREE                                                  $4
    8     6      > FE_RESET_R                                       $6      !0, ->16
          7    > > FE_FETCH_R                                       ~7      $6, !1, ->16
          8    >   ASSIGN                                                   !2, ~7
    9     9        ROPE_INIT                                     3  ~10     'I+would+like+'
         10        ROPE_ADD                                      1  ~10     ~10, !2
         11        ROPE_END                                      2  ~9      ~10, '+'
         12        CONCAT                                           ~12     ~9, !1
         13        CONCAT                                           ~13     ~12, '.+%3Cbr%2F%3E'
         14        ECHO                                                     ~13
    8    15      > JMP                                                      ->7
         16    >   FE_FREE                                                  $6
   10    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.57 ms | 1394 KiB | 13 Q