3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = 'http://mydomain.com/yep/2014-04-01/some-title'; $urlParts = explode('/', str_ireplace(array('http://', 'https://'), '', $url)); echo $urlParts[1];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fAUnp
function name:  (null)
number of ops:  14
compiled vars:  !0 = $url, !1 = $urlParts
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Fmydomain.com%2Fyep%2F2014-04-01%2Fsome-title'
    4     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%2F'
          3        INIT_FCALL                                               'str_ireplace'
          4        SEND_VAL                                                 <array>
          5        SEND_VAL                                                 ''
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $3      
          8        SEND_VAR                                                 $3
          9        DO_ICALL                                         $4      
         10        ASSIGN                                                   !1, $4
    5    11        FETCH_DIM_R                                      ~6      !1, 1
         12        ECHO                                                     ~6
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.83 ms | 1010 KiB | 15 Q