3v4l.org

run code in 300+ PHP versions simultaneously
<?php //$HOMEPAGE = FILE_GET_CONTENTS('WWW.ROGERS.COM'); $homepage = true; if(!$homepage){ die("FILE_GET_CONTENTS_ERROR"); } $rogers = "https://www.rogers.com/business/BSS.portal;RBSSSESSIONID=1DcAeOweynqBxPoLwsY1R2RLFnRagdzM2gur1P8lx6sU6nD8O5zF!2064802681?_nfpb=true&_st=&_windowLabel=header_portlet&_urlType=action&wlpheader_portlet_action=changeLanguage&lang=fr"; $pos = strpos($rogers, "FRANCAIS"); if($pos === FALSE){ die("STRPOS_ERROR"); } $rogers = substr($rogers, 0, $pos); if(!$rogers){ die("SUBSTR_ERROR"); } echo($rogers); echo("/n<br>"); $revrogers = strrev($rogers); echo($revrogers); $pos = strpos($rogers, "FRANCAIS");
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 4
Branch analysis from position: 3
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 13
Branch analysis from position: 12
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 21, Position 2 = 22
Branch analysis from position: 21
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vGLHR
function name:  (null)
number of ops:  35
compiled vars:  !0 = $homepage, !1 = $rogers, !2 = $pos, !3 = $revrogers
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <true>
    4     1        BOOL_NOT                                         ~5      !0
          2      > JMPZ                                                     ~5, ->4
    5     3    > > EXIT                                                     'FILE_GET_CONTENTS_ERROR'
    7     4    >   ASSIGN                                                   !1, 'https%3A%2F%2Fwww.rogers.com%2Fbusiness%2FBSS.portal%3BRBSSSESSIONID%3D1DcAeOweynqBxPoLwsY1R2RLFnRagdzM2gur1P8lx6sU6nD8O5zF%212064802681%3F_nfpb%3Dtrue%26_st%3D%26_windowLabel%3Dheader_portlet%26_urlType%3Daction%26wlpheader_portlet_action%3DchangeLanguage%26lang%3Dfr'
    9     5        INIT_FCALL                                               'strpos'
          6        SEND_VAR                                                 !1
          7        SEND_VAL                                                 'FRANCAIS'
          8        DO_ICALL                                         $7      
          9        ASSIGN                                                   !2, $7
   10    10        TYPE_CHECK                                    4          !2
         11      > JMPZ                                                     ~9, ->13
   11    12    > > EXIT                                                     'STRPOS_ERROR'
   13    13    >   INIT_FCALL                                               'substr'
         14        SEND_VAR                                                 !1
         15        SEND_VAL                                                 0
         16        SEND_VAR                                                 !2
         17        DO_ICALL                                         $10     
         18        ASSIGN                                                   !1, $10
   15    19        BOOL_NOT                                         ~12     !1
         20      > JMPZ                                                     ~12, ->22
   16    21    > > EXIT                                                     'SUBSTR_ERROR'
   18    22    >   ECHO                                                     !1
   19    23        ECHO                                                     '%2Fn%3Cbr%3E'
   21    24        INIT_FCALL                                               'strrev'
         25        SEND_VAR                                                 !1
         26        DO_ICALL                                         $13     
         27        ASSIGN                                                   !3, $13
   22    28        ECHO                                                     !3
   23    29        INIT_FCALL                                               'strpos'
         30        SEND_VAR                                                 !1
         31        SEND_VAL                                                 'FRANCAIS'
         32        DO_ICALL                                         $15     
         33        ASSIGN                                                   !2, $15
         34      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.82 ms | 1400 KiB | 19 Q