3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url_base = 'http://m.kenhdulich.org?lang=vi&id=11'; $url_base = str_replace('m.', '', $url_base); $url_base = reset((explode('?', $url))); echo $url_base;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FYpiH
function name:  (null)
number of ops:  17
compiled vars:  !0 = $url_base, !1 = $url
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Fm.kenhdulich.org%3Flang%3Dvi%26id%3D11'
    3     1        INIT_FCALL                                               'str_replace'
          2        SEND_VAL                                                 'm.'
          3        SEND_VAL                                                 ''
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $3      
          6        ASSIGN                                                   !0, $3
    4     7        INIT_FCALL                                               'reset'
          8        INIT_FCALL                                               'explode'
          9        SEND_VAL                                                 '%3F'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                         $5      
         12        SEND_VAR_NO_REF                               0          $5
         13        DO_ICALL                                         $6      
         14        ASSIGN                                                   !0, $6
    5    15        ECHO                                                     !0
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.97 ms | 1394 KiB | 19 Q