3v4l.org

run code in 300+ PHP versions simultaneously
<?php $new = 'test = new user id'; if (stripos($new, 'test') === FALSE) { $chk = ''; } else { $chk = explode("=",$new); $chk = $chk[1]; } echo $chk; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 9
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WoB7a
function name:  (null)
number of ops:  18
compiled vars:  !0 = $new, !1 = $chk
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'test+%3D+new+user+id'
    5     1        INIT_FCALL                                               'stripos'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 'test'
          4        DO_ICALL                                         $3      
          5        TYPE_CHECK                                    4          $3
          6      > JMPZ                                                     ~4, ->9
    6     7    >   ASSIGN                                                   !1, ''
          8      > JMP                                                      ->16
    9     9    >   INIT_FCALL                                               'explode'
         10        SEND_VAL                                                 '%3D'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $6      
         13        ASSIGN                                                   !1, $6
   10    14        FETCH_DIM_R                                      ~8      !1, 1
         15        ASSIGN                                                   !1, ~8
   15    16    >   ECHO                                                     !1
   16    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.13 ms | 1395 KiB | 17 Q