3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = "the number of letters in mississippi = 12"; $i=-1; $cp = $input; while( !(ctype_digit($cp[$i++]) ) ) ; echo $i; echo $cp[$i],$cp[$i+1],"\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 4
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
filename:       /in/QjJY9
function name:  (null)
number of ops:  19
compiled vars:  !0 = $input, !1 = $i, !2 = $cp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'the+number+of+letters+in+mississippi+%3D+12'
    4     1        ASSIGN                                                   !1, -1
    5     2        ASSIGN                                                   !2, !0
    6     3      > JMP                                                      ->4
          4    >   INIT_FCALL                                               'ctype_digit'
          5        POST_INC                                         ~6      !1
          6        FETCH_DIM_R                                      ~7      !2, ~6
          7        SEND_VAL                                                 ~7
          8        DO_ICALL                                         $8      
          9        BOOL_NOT                                         ~9      $8
         10      > JMPNZ                                                    ~9, ->4
    8    11    >   ECHO                                                     !1
    9    12        FETCH_DIM_R                                      ~10     !2, !1
         13        ECHO                                                     ~10
         14        ADD                                              ~11     !1, 1
         15        FETCH_DIM_R                                      ~12     !2, ~11
         16        ECHO                                                     ~12
         17        ECHO                                                     '%0A'
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.51 ms | 1386 KiB | 15 Q