3v4l.org

run code in 300+ PHP versions simultaneously
<?php function r($str) { $m=preg_match('/kayak\/..\/.*/',$str); echo $m[1]; } 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/YAE9F
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     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/YAE9F
function name:  r
number of ops:  9
compiled vars:  !0 = $str, !1 = $m
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    3     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%2Fkayak%5C%2F..%5C%2F.%2A%2F'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $2      
          5        ASSIGN                                                   !1, $2
    4     6        FETCH_DIM_R                                      ~4      !1, 1
          7        ECHO                                                     ~4
    5     8      > RETURN                                                   null

End of function r

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.28 ms | 1396 KiB | 16 Q