3v4l.org

run code in 300+ PHP versions simultaneously
<?php $strurlregister = "http://ademedev.webcompetence.com/solutions/register.php?creacompte=1&folid=26"; $strurlpos = strpos($strurlregister,".com/"); $strurlpos2 = strpos($strurlregister,".org/"); if($strurlpos != 0){ $strurlsuppr = substr($strurlregister,$strurlpos+4); $strurl = str_replace($strurlsuppr,"",$strurlregister); }else{ $strurlsuppr = substr($strurlregister,$strurlpos2+4); $strurl = str_replace($strurlsuppr,"",$strurlregister); } $strurl.="/back/trainbordereaupreinscr.php?output=5&trainscrid="; echo $strurl;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 26
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 38
Branch analysis from position: 38
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TP393
function name:  (null)
number of ops:  41
compiled vars:  !0 = $strurlregister, !1 = $strurlpos, !2 = $strurlpos2, !3 = $strurlsuppr, !4 = $strurl
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Fademedev.webcompetence.com%2Fsolutions%2Fregister.php%3Fcreacompte%3D1%26folid%3D26'
    4     1        INIT_FCALL                                               'strpos'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 '.com%2F'
          4        DO_ICALL                                         $6      
          5        ASSIGN                                                   !1, $6
    5     6        INIT_FCALL                                               'strpos'
          7        SEND_VAR                                                 !0
          8        SEND_VAL                                                 '.org%2F'
          9        DO_ICALL                                         $8      
         10        ASSIGN                                                   !2, $8
    6    11        IS_NOT_EQUAL                                             !1, 0
         12      > JMPZ                                                     ~10, ->26
    7    13    >   INIT_FCALL                                               'substr'
         14        SEND_VAR                                                 !0
         15        ADD                                              ~11     !1, 4
         16        SEND_VAL                                                 ~11
         17        DO_ICALL                                         $12     
         18        ASSIGN                                                   !3, $12
    8    19        INIT_FCALL                                               'str_replace'
         20        SEND_VAR                                                 !3
         21        SEND_VAL                                                 ''
         22        SEND_VAR                                                 !0
         23        DO_ICALL                                         $14     
         24        ASSIGN                                                   !4, $14
         25      > JMP                                                      ->38
   11    26    >   INIT_FCALL                                               'substr'
         27        SEND_VAR                                                 !0
         28        ADD                                              ~16     !2, 4
         29        SEND_VAL                                                 ~16
         30        DO_ICALL                                         $17     
         31        ASSIGN                                                   !3, $17
   12    32        INIT_FCALL                                               'str_replace'
         33        SEND_VAR                                                 !3
         34        SEND_VAL                                                 ''
         35        SEND_VAR                                                 !0
         36        DO_ICALL                                         $19     
         37        ASSIGN                                                   !4, $19
   14    38    >   ASSIGN_OP                                     8          !4, '%2Fback%2Ftrainbordereaupreinscr.php%3Foutput%3D5%26trainscrid%3D'
   15    39        ECHO                                                     !4
         40      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.84 ms | 1400 KiB | 19 Q