3v4l.org

run code in 300+ PHP versions simultaneously
<?php $b = "string"; echo ++$b."\n"; echo $b."\n"; echo --$b."\n"; echo $b."\n"; $b += 1; echo $b."\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AVokS
function name:  (null)
number of ops:  15
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        CONCAT                                           ~4      !0, '%0A'
          5        ECHO                                                     ~4
    5     6        PRE_DEC                                          ~5      !0
          7        CONCAT                                           ~6      ~5, '%0A'
          8        ECHO                                                     ~6
    6     9        CONCAT                                           ~7      !0, '%0A'
         10        ECHO                                                     ~7
    7    11        ASSIGN_OP                                     1          !0, 1
    8    12        CONCAT                                           ~9      !0, '%0A'
         13        ECHO                                                     ~9
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.79 ms | 1393 KiB | 13 Q