3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string4="Featuring"; $pos="Featuring"; while(($pos = strpos($string, ',',$pos)) !== FALSE){ $count++; $pos++; // This ends } echo $count;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 3
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 3
Branch analysis from position: 13
Branch analysis from position: 3
filename:       /in/29AIt
function name:  (null)
number of ops:  15
compiled vars:  !0 = $string4, !1 = $pos, !2 = $count, !3 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Featuring'
    3     1        ASSIGN                                                   !1, 'Featuring'
    4     2      > JMP                                                      ->5
    5     3    >   PRE_INC                                                  !2
    6     4        PRE_INC                                                  !1
    4     5    >   INIT_FCALL                                               'strpos'
          6        SEND_VAR                                                 !3
          7        SEND_VAL                                                 '%2C'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                         $8      
         10        ASSIGN                                           ~9      !1, $8
         11        TYPE_CHECK                                  1018          ~9
         12      > JMPNZ                                                    ~10, ->3
    9    13    >   ECHO                                                     !2
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.6 ms | 1394 KiB | 15 Q