3v4l.org

run code in 300+ PHP versions simultaneously
<?php $parts = parse_url('http://www.mywebsite/456754567/531613490.htm?menu=contact', PHP_URL_PATH); var_dump( explode('/', $parts)[1] );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jHoM6
function name:  (null)
number of ops:  14
compiled vars:  !0 = $parts
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'parse_url'
          1        SEND_VAL                                                 'http%3A%2F%2Fwww.mywebsite%2F456754567%2F531613490.htm%3Fmenu%3Dcontact'
          2        SEND_VAL                                                 5
          3        DO_ICALL                                         $1      
          4        ASSIGN                                                   !0, $1
    5     5        INIT_FCALL                                               'var_dump'
          6        INIT_FCALL                                               'explode'
          7        SEND_VAL                                                 '%2F'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $3      
         10        FETCH_DIM_R                                      ~4      $3, 1
         11        SEND_VAL                                                 ~4
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
260.3 ms | 1394 KiB | 20 Q