3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i = 4; $j = 1; $a = ($i / 3); $a = $a * 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/1WFcS
function name:  (null)
number of ops:  17
compiled vars:  !0 = $i, !1 = $j, !2 = $a, !3 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 4
    3     1        ASSIGN                                                   !1, 1
    4     2        DIV                                              ~6      !0, 3
          3        ASSIGN                                                   !2, ~6
    5     4        MUL                                              ~8      !2, 3
          5        DIV                                              ~9      !1, 3
          6        ADD                                              ~10     ~8, ~9
          7        ASSIGN                                                   !2, ~10
    6     8        MOD                                              ~12     !0, 3
          9        MUL                                              ~13     ~12, 3
         10        MOD                                              ~14     !1, 3
         11        ADD                                              ~15     ~13, ~14
         12        ASSIGN                                                   !3, ~15
    7    13        CONCAT                                           ~17     !2, '++'
         14        CONCAT                                           ~18     ~17, !3
         15        ECHO                                                     ~18
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
181.3 ms | 1393 KiB | 13 Q