3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
183.3 ms | 1398 KiB | 15 Q