3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array(60,56.8,42.08,52.16,52.8); $array = array(60,56.8,42.08,52.16,52.8); while(count($array) > 0){ $first = array_shift($array); foreach($array as $value){ echo "$first + $value = " . ($first + $value) . "<br/>\n"; $result[] = $first + $value; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
2 jumps found. (Code = 44) Position 1 = 25, Position 2 = 3
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 21
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 21
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 21
2 jumps found. (Code = 44) Position 1 = 25, Position 2 = 3
Branch analysis from position: 25
Branch analysis from position: 3
Branch analysis from position: 21
filename:       /in/XD0Sh
function name:  (null)
number of ops:  26
compiled vars:  !0 = $array, !1 = $first, !2 = $value, !3 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !0, <array>
    6     2      > JMP                                                      ->22
    7     3    >   INIT_FCALL                                               'array_shift'
          4        SEND_REF                                                 !0
          5        DO_ICALL                                         $6      
          6        ASSIGN                                                   !1, $6
    8     7      > FE_RESET_R                                       $8      !0, ->21
          8    > > FE_FETCH_R                                               $8, !2, ->21
    9     9    >   ROPE_INIT                                     4  ~10     !1
         10        ROPE_ADD                                      1  ~10     ~10, '+%2B+'
         11        ROPE_ADD                                      2  ~10     ~10, !2
         12        ROPE_END                                      3  ~9      ~10, '+%3D+'
         13        ADD                                              ~12     !1, !2
         14        CONCAT                                           ~13     ~9, ~12
         15        CONCAT                                           ~14     ~13, '%3Cbr%2F%3E%0A'
         16        ECHO                                                     ~14
   10    17        ADD                                              ~16     !1, !2
         18        ASSIGN_DIM                                               !3
         19        OP_DATA                                                  ~16
    8    20      > JMP                                                      ->8
         21    >   FE_FREE                                                  $8
    6    22    >   COUNT                                            ~17     !0
         23        IS_SMALLER                                               0, ~17
         24      > JMPNZ                                                    ~18, ->3
   12    25    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.76 ms | 1396 KiB | 15 Q