3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = ''; $i = 0; $result = 'good'; while ( stristr( $url, 'http' ) !== $url ) { $url = substr( $url, 1 ); $i++; if ( $i > 256 ) { $result = 'bad'; } } var_dump( $result );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 4
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 13
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 4
Branch analysis from position: 19
Branch analysis from position: 4
Branch analysis from position: 13
filename:       /in/PgSZg
function name:  (null)
number of ops:  23
compiled vars:  !0 = $url, !1 = $i, !2 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, ''
    4     1        ASSIGN                                                   !1, 0
    5     2        ASSIGN                                                   !2, 'good'
    7     3      > JMP                                                      ->13
    8     4    >   INIT_FCALL                                               'substr'
          5        SEND_VAR                                                 !0
          6        SEND_VAL                                                 1
          7        DO_ICALL                                         $6      
          8        ASSIGN                                                   !0, $6
    9     9        PRE_INC                                                  !1
   10    10        IS_SMALLER                                               256, !1
         11      > JMPZ                                                     ~9, ->13
   11    12    >   ASSIGN                                                   !2, 'bad'
    7    13    >   INIT_FCALL                                               'stristr'
         14        SEND_VAR                                                 !0
         15        SEND_VAL                                                 'http'
         16        DO_ICALL                                         $11     
         17        IS_NOT_IDENTICAL                                         !0, $11
         18      > JMPNZ                                                    ~12, ->4
   15    19    >   INIT_FCALL                                               'var_dump'
         20        SEND_VAR                                                 !2
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.17 ms | 1410 KiB | 19 Q