3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('TESTVAL','test'); define('TEST','derp'); $file = 'test.php'; echo "{TESTVAL}/{TEST}/{TESTVAL}/{$file}";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UG5SB
function name:  (null)
number of ops:  13
compiled vars:  !0 = $file
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'define'
          1        SEND_VAL                                                 'TESTVAL'
          2        SEND_VAL                                                 'test'
          3        DO_ICALL                                                 
    3     4        INIT_FCALL                                               'define'
          5        SEND_VAL                                                 'TEST'
          6        SEND_VAL                                                 'derp'
          7        DO_ICALL                                                 
    4     8        ASSIGN                                                   !0, 'test.php'
    5     9        NOP                                                      
         10        FAST_CONCAT                                      ~4      '%7BTESTVAL%7D%2F%7BTEST%7D%2F%7BTESTVAL%7D%2F', !0
         11        ECHO                                                     ~4
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.08 ms | 1394 KiB | 15 Q