3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump( '{!' . (string)2 + 1 . '}' ); // The "." and "+" have the same precedence, so how operations are grouped // comes down to their associativity. Left associativity means the operations // were grouped like: var_dump( (('{!' . (string)2) + 1) . '}' );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/i2HUO
function name:  (null)
number of ops:  15
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
          1        CAST                                          6  ~0      2
          2        ADD                                              ~1      ~0, 1
          3        CONCAT                                           ~2      '%7B%21', ~1
          4        CONCAT                                           ~3      ~2, '%7D'
          5        SEND_VAL                                                 ~3
          6        DO_ICALL                                                 
    8     7        INIT_FCALL                                               'var_dump'
          8        CAST                                          6  ~5      2
          9        CONCAT                                           ~6      '%7B%21', ~5
         10        ADD                                              ~7      ~6, 1
         11        CONCAT                                           ~8      ~7, '%7D'
         12        SEND_VAL                                                 ~8
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.67 ms | 1385 KiB | 15 Q