3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str = 'ABC'; echo ++$str, "\n"; echo $str++, "\n"; echo $str, "\n";
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/B5VDh
function name:  (null)
number of ops:  10
compiled vars:  !0 = $str
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   ASSIGN                                                   !0, 'ABC'
   5     1        PRE_INC                                          $2      !0
         2        ECHO                                                     $2
         3        ECHO                                                     '%0A'
   6     4        POST_INC                                         ~3      !0
         5        ECHO                                                     ~3
         6        ECHO                                                     '%0A'
   7     7        ECHO                                                     !0
         8        ECHO                                                     '%0A'
         9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.3.0