3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('TEST', 'dev'); $a = [ '/some/basic/' . TEST . '/example', ]; print_r($a);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2N2Jl
function name:  (null)
number of ops:  13
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'define'
          1        SEND_VAL                                                 'TEST'
          2        SEND_VAL                                                 'dev'
          3        DO_ICALL                                                 
    5     4        FETCH_CONSTANT                                   ~2      'TEST'
          5        CONCAT                                           ~3      '%2Fsome%2Fbasic%2F', ~2
          6        CONCAT                                           ~4      ~3, '%2Fexample'
          7        INIT_ARRAY                                       ~5      ~4
    4     8        ASSIGN                                                   !0, ~5
    8     9        INIT_FCALL                                               'print_r'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.26 ms | 1398 KiB | 17 Q