3v4l.org

run code in 300+ PHP versions simultaneously
<?php $your_crazy_input = "flag"; if(isset($your_crazy_input)) { $position =strpos($your_crazy_input, "flag"); $length = strlen($your_crazy_input); echo $position; echo "\n"; echo $length; echo "\n"; echo $position !== false; if($position !== false && $length < 4) { echo $flag; } else { echo "Oh Sorry.. This isn't a crazy input."; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 24
Branch analysis from position: 3
2 jumps found. (Code = 46) Position 1 = 18, Position 2 = 20
Branch analysis from position: 18
2 jumps found. (Code = 43) Position 1 = 21, Position 2 = 23
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
Branch analysis from position: 24
filename:       /in/66eW5
function name:  (null)
number of ops:  25
compiled vars:  !0 = $your_crazy_input, !1 = $position, !2 = $length, !3 = $flag
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'flag'
    4     1        ISSET_ISEMPTY_CV                                         !0
          2      > JMPZ                                                     ~5, ->24
    5     3    >   INIT_FCALL                                               'strpos'
          4        SEND_VAR                                                 !0
          5        SEND_VAL                                                 'flag'
          6        DO_ICALL                                         $6      
          7        ASSIGN                                                   !1, $6
    6     8        STRLEN                                           ~8      !0
          9        ASSIGN                                                   !2, ~8
    7    10        ECHO                                                     !1
    8    11        ECHO                                                     '%0A'
    9    12        ECHO                                                     !2
   10    13        ECHO                                                     '%0A'
   11    14        TYPE_CHECK                                  1018  ~10     !1
         15        ECHO                                                     ~10
   14    16        TYPE_CHECK                                  1018  ~11     !1
         17      > JMPZ_EX                                          ~11     ~11, ->20
         18    >   IS_SMALLER                                       ~12     !2, 4
         19        BOOL                                             ~11     ~12
         20    > > JMPZ                                                     ~11, ->23
   15    21    >   ECHO                                                     !3
         22      > JMP                                                      ->24
   18    23    >   ECHO                                                     'Oh+Sorry..+This+isn%27t+a+crazy+input.'
   20    24    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.42 ms | 1395 KiB | 15 Q