3v4l.org

run code in 300+ PHP versions simultaneously
<?php $src = array('foo : bar', 'foo...bar'); $i = 0; while (false !== ($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 = 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/fkDCc
function name:  (null)
number of ops:  16
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        TYPE_CHECK                                  1018          ~9
          9      > JMPNZ                                                    ~10, ->3
    8    10    >   ROPE_INIT                                     4  ~12     'Lines%3A+'
         11        ROPE_ADD                                      1  ~12     ~12, !1
         12        ROPE_ADD                                      2  ~12     ~12, '+-+Words%3A+'
         13        ROPE_END                                      3  ~11     ~12, !2
         14        ECHO                                                     ~11
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.32 ms | 1394 KiB | 13 Q