3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = "the number of letters in mississippi = 11"; $i=0; $cp = $input; while( !(ctype_digit($cp[$i++]) ) ) ; echo substr($input,--$i),"\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/rKG5H
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+11'
    4     1        ASSIGN                                                   !1, 0
    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    >   INIT_FCALL                                               'substr'
         12        SEND_VAR                                                 !0
         13        PRE_DEC                                          ~10     !1
         14        SEND_VAL                                                 ~10
         15        DO_ICALL                                         $11     
         16        ECHO                                                     $11
         17        ECHO                                                     '%0A'
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
183.46 ms | 1395 KiB | 17 Q