3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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."; } }
based on VXeST
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = 3, Position 2 = 24
Branch analysis from position: 3
Jump found. Position 1 = 18, Position 2 = 20
Branch analysis from position: 18
Jump found. Position 1 = 21, Position 2 = 23
Branch analysis from position: 21
Jump found. Position 1 = 24
Branch analysis from position: 24
Jump found. Position 1 = -2
Branch analysis from position: 23
Jump found. 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_VAR                           310378496  ~5      !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        IS_NOT_IDENTICAL                                 ~10     !1, <false>
        15        ECHO                                                     ~10
  14    16        IS_NOT_IDENTICAL                                 ~11     !1, <false>
        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.'
        24    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.3.0