3v4l.org

run code in 300+ PHP versions simultaneously
<?php $regsource = 'reg.ddd.site.ru'; $a = explode('.',$regsource); unset($a[0]); echo $redirect_host = implode('.',$a).'/';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EsuJi
function name:  (null)
number of ops:  15
compiled vars:  !0 = $regsource, !1 = $a, !2 = $redirect_host
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'reg.ddd.site.ru'
    3     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '.'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
    4     6        UNSET_DIM                                                !1, 0
    5     7        INIT_FCALL                                               'implode'
          8        SEND_VAL                                                 '.'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $6      
         11        CONCAT                                           ~7      $6, '%2F'
         12        ASSIGN                                           ~8      !2, ~7
         13        ECHO                                                     ~8
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.85 ms | 1394 KiB | 17 Q