3v4l.org

run code in 300+ PHP versions simultaneously
<?php $b = "string"; echo ++$b."\n"; echo --$b; echo $b += 1;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/o9cHN
function name:  (null)
number of ops:  9
compiled vars:  !0 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'string'
    3     1        PRE_INC                                          ~2      !0
          2        CONCAT                                           ~3      ~2, '%0A'
          3        ECHO                                                     ~3
    4     4        PRE_DEC                                          ~4      !0
          5        ECHO                                                     ~4
    5     6        ASSIGN_OP                                     1  ~5      !0, 1
          7        ECHO                                                     ~5
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.08 ms | 1392 KiB | 13 Q