3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dork = ( !(ereg("http[s]*://", "wtf" )) ) ? "http://" ." wtf" : "wtf"; print $dork; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iHUk2
function name:  (null)
number of ops:  12
compiled vars:  !0 = $dork
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL_BY_NAME                                       'ereg'
          1        SEND_VAL_EX                                              'http%5Bs%5D%2A%3A%2F%2F'
          2        SEND_VAL_EX                                              'wtf'
          3        DO_FCALL                                      0  $1      
          4        BOOL_NOT                                         ~2      $1
          5      > JMPZ                                                     ~2, ->8
          6    >   QM_ASSIGN                                        ~3      'http%3A%2F%2F+wtf'
          7      > JMP                                                      ->9
          8    >   QM_ASSIGN                                        ~3      'wtf'
          9    >   ASSIGN                                                   !0, ~3
    3    10        ECHO                                                     !0
    4    11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.53 ms | 1393 KiB | 13 Q