3v4l.org

run code in 300+ PHP versions simultaneously
<?php $adapter = 'Dropbox'; $leagueAdapter = '\\League\\Flysystem\\Adapter\\' . $adapter; var_dump($leagueAdapter); $leagueAdapter = '\\League\\Flysystem\\' . $adapter . '\\' . $adapter . 'Adapter'; var_dump($leagueAdapter);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/W0k7f
function name:  (null)
number of ops:  15
compiled vars:  !0 = $adapter, !1 = $leagueAdapter
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Dropbox'
    3     1        CONCAT                                           ~3      '%5CLeague%5CFlysystem%5CAdapter%5C', !0
          2        ASSIGN                                                   !1, ~3
    4     3        INIT_FCALL                                               'var_dump'
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                                 
    5     6        CONCAT                                           ~6      '%5CLeague%5CFlysystem%5C', !0
          7        CONCAT                                           ~7      ~6, '%5C'
          8        CONCAT                                           ~8      ~7, !0
          9        CONCAT                                           ~9      ~8, 'Adapter'
         10        ASSIGN                                                   !1, ~9
    6    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.9 ms | 1385 KiB | 15 Q