3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.89 ms | 1400 KiB | 19 Q