3v4l.org

run code in 300+ PHP versions simultaneously
<?php $path = "\/var\/www\/resources\/\/test.kmz"; $bagel = explode('/', $path); print_r($bagel); $titlePattern = '/\/.*?.kmz/U'; preg_match($titlePattern, $path, $titles); print_r($titles); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6FkoS
function name:  (null)
number of ops:  19
compiled vars:  !0 = $path, !1 = $bagel, !2 = $titlePattern, !3 = $titles
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%5C%2Fvar%5C%2Fwww%5C%2Fresources%5C%2F%5C%2Ftest.kmz'
    3     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%2F'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $5      
          5        ASSIGN                                                   !1, $5
    4     6        INIT_FCALL                                               'print_r'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
    5     9        ASSIGN                                                   !2, '%2F%5C%2F.%2A%3F.kmz%2FU'
    6    10        INIT_FCALL                                               'preg_match'
         11        SEND_VAR                                                 !2
         12        SEND_VAR                                                 !0
         13        SEND_REF                                                 !3
         14        DO_ICALL                                                 
    7    15        INIT_FCALL                                               'print_r'
         16        SEND_VAR                                                 !3
         17        DO_ICALL                                                 
    8    18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.5 ms | 1395 KiB | 19 Q