3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.87 ms | 1395 KiB | 17 Q