3v4l.org

run code in 300+ PHP versions simultaneously
<?php $filename = urldecode("aaaa.dd%00/../cc"); echo '-->>>'.pathinfo($filename)['extension']; var_dump(pathinfo($filename));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8rBag
function name:  (null)
number of ops:  17
compiled vars:  !0 = $filename
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'urldecode'
          1        SEND_VAL                                                 'aaaa.dd%2500%2F..%2Fcc'
          2        DO_ICALL                                         $1      
          3        ASSIGN                                                   !0, $1
    4     4        INIT_FCALL                                               'pathinfo'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $3      
          7        FETCH_DIM_R                                      ~4      $3, 'extension'
          8        CONCAT                                           ~5      '--%3E%3E%3E', ~4
          9        ECHO                                                     ~5
    5    10        INIT_FCALL                                               'var_dump'
         11        INIT_FCALL                                               'pathinfo'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                         $6      
         14        SEND_VAR                                                 $6
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.62 ms | 1394 KiB | 19 Q