3v4l.org

run code in 300+ PHP versions simultaneously
<?php $path = '/a/b/c/d/e.f'; $matches = preg_split('/\/|\\\/', $path); $filename = $matches[count($matches) - 1]; if(strpos('.', $filename) !== -1) {}
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 16
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/CqJku
function name:  (null)
number of ops:  17
compiled vars:  !0 = $path, !1 = $matches, !2 = $filename
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%2Fa%2Fb%2Fc%2Fd%2Fe.f'
    5     1        INIT_FCALL                                               'preg_split'
          2        SEND_VAL                                                 '%2F%5C%2F%7C%5C%5C%2F'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
    7     6        COUNT                                            ~6      !1
          7        SUB                                              ~7      ~6, 1
          8        FETCH_DIM_R                                      ~8      !1, ~7
          9        ASSIGN                                                   !2, ~8
    9    10        INIT_FCALL                                               'strpos'
         11        SEND_VAL                                                 '.'
         12        SEND_VAR                                                 !2
         13        DO_ICALL                                         $10     
         14        IS_NOT_IDENTICAL                                         $10, -1
         15      > JMPZ                                                     ~11, ->16
         16    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.78 ms | 1398 KiB | 17 Q