3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i = 0; $j = 0; $a = $i / 3 * 3 + $j / 3; $b = $i % 3 * 3 + $j % 3; echo $a." ".$b;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/W239G
function name:  (null)
number of ops:  16
compiled vars:  !0 = $i, !1 = $j, !2 = $a, !3 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 0
    3     1        ASSIGN                                                   !1, 0
    4     2        DIV                                              ~6      !0, 3
          3        MUL                                              ~7      ~6, 3
          4        DIV                                              ~8      !1, 3
          5        ADD                                              ~9      ~7, ~8
          6        ASSIGN                                                   !2, ~9
    5     7        MOD                                              ~11     !0, 3
          8        MUL                                              ~12     ~11, 3
          9        MOD                                              ~13     !1, 3
         10        ADD                                              ~14     ~12, ~13
         11        ASSIGN                                                   !3, ~14
    6    12        CONCAT                                           ~16     !2, '++'
         13        CONCAT                                           ~17     ~16, !3
         14        ECHO                                                     ~17
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.16 ms | 1393 KiB | 13 Q