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/rHk1N
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'
    5     8        ASSIGN                                                   !0, ~4
    8     9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.75 ms | 1393 KiB | 15 Q