3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s=null; if(is_numeric($s)==1) die("numerico"); echo "strlen=".strlen($s); for($i=0;$i<strlen($s);$i++) if(is_numeric($s[$i])) echo $s[$i]." in posizione $i"; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 7
Branch analysis from position: 6
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 12
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 22
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 12
Branch analysis from position: 26
Branch analysis from position: 12
Branch analysis from position: 22
filename:       /in/PRg6P
function name:  (null)
number of ops:  27
compiled vars:  !0 = $s, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, null
    3     1        INIT_FCALL                                               'is_numeric'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        IS_EQUAL                                                 $3, 1
          5      > JMPZ                                                     ~4, ->7
    4     6    > > EXIT                                                     'numerico'
    5     7    >   STRLEN                                           ~5      !0
          8        CONCAT                                           ~6      'strlen%3D', ~5
          9        ECHO                                                     ~6
    6    10        ASSIGN                                                   !1, 0
         11      > JMP                                                      ->23
    7    12    >   INIT_FCALL                                               'is_numeric'
         13        FETCH_DIM_R                                      ~8      !0, !1
         14        SEND_VAL                                                 ~8
         15        DO_ICALL                                         $9      
         16      > JMPZ                                                     $9, ->22
    8    17    >   FETCH_DIM_R                                      ~10     !0, !1
         18        NOP                                                      
         19        FAST_CONCAT                                      ~11     '+in+posizione+', !1
         20        CONCAT                                           ~12     ~10, ~11
         21        ECHO                                                     ~12
    6    22    >   PRE_INC                                                  !1
         23    >   STRLEN                                           ~14     !0
         24        IS_SMALLER                                               !1, ~14
         25      > JMPNZ                                                    ~15, ->12
   12    26    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.74 ms | 1396 KiB | 15 Q