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/so905
function name:  (null)
number of ops:  18
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    >   ROPE_INIT                                     5  ~11     '%7Bsubstr%28'
         12        ROPE_ADD                                      1  ~11     ~11, !0
         13        ROPE_ADD                                      2  ~11     ~11, '%2C--'
         14        ROPE_ADD                                      3  ~11     ~11, !1
         15        ROPE_END                                      4  ~10     ~11, '%29%7D%0A'
         16        ECHO                                                     ~10
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.11 ms | 1395 KiB | 15 Q