3v4l.org

run code in 300+ PHP versions simultaneously
<?php function r($str) { $str=explode('/', $str); $str=explode('.htm?', $str[2]); $str=explode('-', $str[0]); $str=$str[count($str)-1]; echo $str; } r("/kayak/es/husa-ciudad-de-compostela-60337.htm?checkin=2014-05-01&checkout=2014-05-02");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/i3WLN
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   INIT_FCALL                                               'r'
          1        SEND_VAL                                                 '%2Fkayak%2Fes%2Fhusa-ciudad-de-compostela-60337.htm%3Fcheckin%3D2014-05-01%26checkout%3D2014-05-02'
          2        DO_FCALL                                      0          
          3      > RETURN                                                   1

Function r:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/i3WLN
function name:  r
number of ops:  24
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    3     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%2F'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $1      
          5        ASSIGN                                                   !0, $1
    4     6        INIT_FCALL                                               'explode'
          7        SEND_VAL                                                 '.htm%3F'
          8        FETCH_DIM_R                                      ~3      !0, 2
          9        SEND_VAL                                                 ~3
         10        DO_ICALL                                         $4      
         11        ASSIGN                                                   !0, $4
    5    12        INIT_FCALL                                               'explode'
         13        SEND_VAL                                                 '-'
         14        FETCH_DIM_R                                      ~6      !0, 0
         15        SEND_VAL                                                 ~6
         16        DO_ICALL                                         $7      
         17        ASSIGN                                                   !0, $7
    6    18        COUNT                                            ~9      !0
         19        SUB                                              ~10     ~9, 1
         20        FETCH_DIM_R                                      ~11     !0, ~10
         21        ASSIGN                                                   !0, ~11
    7    22        ECHO                                                     !0
    8    23      > RETURN                                                   null

End of function r

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.86 ms | 1399 KiB | 16 Q