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/OkK52
function name:  (null)
number of ops:  9
compiled vars:  !0 = $upload
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   FETCH_CONSTANT                                   ~1      'FILEPATH'
          1        CONCAT                                           ~2      ~1, 'assets%2Fuploads%2F'
          2        INIT_ARRAY                                       ~3      ~2, 'path'
   10     3        ADD_ARRAY_ELEMENT                                ~3      'gif%7Cjpg%7Cpng', 'allowed_types'
    8     4        ASSIGN                                                   !0, ~3
   12     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                                 
          8      > RETURN                                                   1

Function filepath:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OkK52
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:
283.62 ms | 1394 KiB | 16 Q