3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Some parsing goes on here, ending up with following variables $hRowCount = 3; $vRowCount = 8; $resultId = 3; $output = "Given result ID => " . $resultId; $output .= "\n\nVertical question => " . (int) ($resultId / $hRowCount); $output .= "\nHorizontal question => " . $resultId % $hRowCount; echo $output;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0MYSA
function name:  (null)
number of ops:  14
compiled vars:  !0 = $hRowCount, !1 = $vRowCount, !2 = $resultId, !3 = $output
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, 3
    5     1        ASSIGN                                                   !1, 8
    6     2        ASSIGN                                                   !2, 3
    8     3        CONCAT                                           ~7      'Given+result+ID+%3D%3E+', !2
          4        ASSIGN                                                   !3, ~7
    9     5        DIV                                              ~9      !2, !0
          6        CAST                                          4  ~10     ~9
          7        CONCAT                                           ~11     '%0A%0AVertical+question+%3D%3E+', ~10
          8        ASSIGN_OP                                     8          !3, ~11
   10     9        MOD                                              ~13     !2, !0
         10        CONCAT                                           ~14     '%0AHorizontal+question+%3D%3E+', ~13
         11        ASSIGN_OP                                     8          !3, ~14
   12    12        ECHO                                                     !3
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.72 ms | 1393 KiB | 13 Q