3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
14.92 ms | 410 KiB | 7 Q