3v4l.org

run code in 300+ PHP versions simultaneously
<?php $code = '999'; $index = stripos($code,'*'); if ($index === FALSE) { echo "no stars\n"; } echo $index."\n"; $code = str_replace('*','',$code); echo $code."\n";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 9
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
filename:       /in/A9oXD
function name:  (null)
number of ops:  20
compiled vars:  !0 = $code, !1 = $index
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '999'
    3     1        INIT_FCALL                                               'stripos'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 '%2A'
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !1, $3
    4     6        TYPE_CHECK                                    4          !1
          7      > JMPZ                                                     ~5, ->9
    5     8    >   ECHO                                                     'no+stars%0A'
    7     9    >   CONCAT                                           ~6      !1, '%0A'
         10        ECHO                                                     ~6
    8    11        INIT_FCALL                                               'str_replace'
         12        SEND_VAL                                                 '%2A'
         13        SEND_VAL                                                 ''
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                         $7      
         16        ASSIGN                                                   !0, $7
    9    17        CONCAT                                           ~9      !0, '%0A'
         18        ECHO                                                     ~9
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.31 ms | 1395 KiB | 17 Q