3v4l.org

run code in 300+ PHP versions simultaneously
<?php function FILEPATH() { return "this"; } $upload = array( 'path' => FILEPATH() . 'assets/uploads/', // Get Parse error: syntax error, unexpected '.', expecting ')' 'allowed_types' => 'gif|jpg|png' ); var_dump($upload);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1FUr3
function name:  (null)
number of ops:  10
compiled vars:  !0 = $upload
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL                                               'filepath'
          1        DO_FCALL                                      0  $1      
          2        CONCAT                                           ~2      $1, 'assets%2Fuploads%2F'
          3        INIT_ARRAY                                       ~3      ~2, 'path'
   10     4        ADD_ARRAY_ELEMENT                                ~3      'gif%7Cjpg%7Cpng', 'allowed_types'
    8     5        ASSIGN                                                   !0, ~3
   12     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Function filepath:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1FUr3
function name:  FILEPATH
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E > > RETURN                                                   'this'
    6     1*     > RETURN                                                   null

End of function filepath

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.16 ms | 1388 KiB | 16 Q