3v4l.org

run code in 500+ PHP versions simultaneously
<?php $example = 'This is an example of what I need.'; $words = str_word_count($example, 1); for ($x = 0; isset($words[$x + 2]); ++$x) { printf("%s %s %s\n", $words[$x], $words[$x + 1], $words[$x + 2]); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 8
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 8
Branch analysis from position: 23
Branch analysis from position: 8
filename:       /in/4IWGC
function name:  (null)
number of ops:  24
compiled vars:  !0 = $example, !1 = $words, !2 = $x
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'This+is+an+example+of+what+I+need.'
    5     1        INIT_FCALL                                                   'str_word_count'
          2        SEND_VAR                                                     !0
          3        SEND_VAL                                                     1
          4        DO_ICALL                                             $4      
          5        ASSIGN                                                       !1, $4
    6     6        ASSIGN                                                       !2, 0
          7      > JMP                                                          ->20
    7     8    >   INIT_FCALL                                                   'printf'
          9        SEND_VAL                                                     '%25s+%25s+%25s%0A'
         10        FETCH_DIM_R                                          ~7      !1, !2
         11        SEND_VAL                                                     ~7
         12        ADD                                                  ~8      !2, 1
         13        FETCH_DIM_R                                          ~9      !1, ~8
         14        SEND_VAL                                                     ~9
         15        ADD                                                  ~10     !2, 2
         16        FETCH_DIM_R                                          ~11     !1, ~10
         17        SEND_VAL                                                     ~11
         18        DO_ICALL                                                     
    6    19        PRE_INC                                                      !2
         20    >   ADD                                                  ~14     !2, 2
         21        ISSET_ISEMPTY_DIM_OBJ                             0          !1, ~14
         22      > JMPNZ                                                        ~15, ->8
    8    23    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
164.49 ms | 2009 KiB | 15 Q