3v4l.org

run code in 500+ 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 );

Abusive script

This script was stopped while abusing our resources

Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 4
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 10
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 4
Branch analysis from position: 16
Branch analysis from position: 4
Branch analysis from position: 10
filename:       /in/PgSZg
function name:  (null)
number of ops:  20
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                                                          ->10
    8     4    >   FRAMELESS_ICALL_2                substr              ~6      !0, 1
          5        ASSIGN                                                       !0, ~6
    9     6        PRE_INC                                                      !1
   10     7        IS_SMALLER                                                   256, !1
          8      > JMPZ                                                         ~9, ->10
   11     9    >   ASSIGN                                                       !2, 'bad'
    7    10    >   INIT_FCALL                                                   'stristr'
         11        SEND_VAR                                                     !0
         12        SEND_VAL                                                     'http'
         13        DO_ICALL                                             $11     
         14        IS_NOT_IDENTICAL                                             !0, $11
         15      > JMPNZ                                                        ~12, ->4
   15    16    >   INIT_FCALL                                                   'var_dump'
         17        SEND_VAR                                                     !2
         18        DO_ICALL                                                     
         19      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
217.3 ms | 1990 KiB | 15 Q