3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = 8; $y1 = -~$x * 4; $y2 = ($x + 1) * 4; var_dump($y1,$y2) ; //36,36
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OM79k
function name:  (null)
number of ops:  13
compiled vars:  !0 = $x, !1 = $y1, !2 = $y2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 8
    3     1        BW_NOT                                           ~4      !0
          2        MUL                                              ~5      ~4, -1
          3        MUL                                              ~6      ~5, 4
          4        ASSIGN                                                   !1, ~6
    4     5        ADD                                              ~8      !0, 1
          6        MUL                                              ~9      ~8, 4
          7        ASSIGN                                                   !2, ~9
    5     8        INIT_FCALL                                               'var_dump'
          9        SEND_VAR                                                 !1
         10        SEND_VAR                                                 !2
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.83 ms | 1394 KiB | 15 Q