3v4l.org

run code in 300+ PHP versions simultaneously
<?php $src = array('foo : bar', 'foo...bar'); $i = 0; while ($src[$i]) { $words += count($src[$i]); $i++; } echo "Lines: $i - Words: $words";
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 = 9, Position 2 = 3
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 9, Position 2 = 3
Branch analysis from position: 9
Branch analysis from position: 3
filename:       /in/sPXsI
function name:  (null)
number of ops:  15
compiled vars:  !0 = $src, !1 = $i, !2 = $words
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, 0
    4     2      > JMP                                                      ->7
    5     3    >   FETCH_DIM_R                                      ~5      !0, !1
          4        COUNT                                            ~6      ~5
          5        ASSIGN_OP                                     1          !2, ~6
    6     6        PRE_INC                                                  !1
    4     7    >   FETCH_DIM_R                                      ~9      !0, !1
          8      > JMPNZ                                                    ~9, ->3
    8     9    >   ROPE_INIT                                     4  ~11     'Lines%3A+'
         10        ROPE_ADD                                      1  ~11     ~11, !1
         11        ROPE_ADD                                      2  ~11     ~11, '+-+Words%3A+'
         12        ROPE_END                                      3  ~10     ~11, !2
         13        ECHO                                                     ~10
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.3 ms | 1397 KiB | 13 Q