3v4l.org

run code in 300+ PHP versions simultaneously
<?php //fscanf(STDIN, "%d %d", $n, $m); $choshin_do = $n * 6; $tanshin_do = ($m * 30) + ($n * 0.5); if($choshin_do > $tanshin_do) { $do = $choshin_do - tanshin_do; } else { $do = $tanshin_do - $choshin_do; } echo ($do) . "\n";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 12
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2VQCi
function name:  (null)
number of ops:  17
compiled vars:  !0 = $choshin_do, !1 = $n, !2 = $tanshin_do, !3 = $m, !4 = $do
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   MUL                                              ~5      !1, 6
          1        ASSIGN                                                   !0, ~5
    6     2        MUL                                              ~7      !3, 30
          3        MUL                                              ~8      !1, 0.5
          4        ADD                                              ~9      ~7, ~8
          5        ASSIGN                                                   !2, ~9
    8     6        IS_SMALLER                                               !2, !0
          7      > JMPZ                                                     ~11, ->12
    9     8    >   FETCH_CONSTANT                                   ~12     'tanshin_do'
          9        SUB                                              ~13     !0, ~12
         10        ASSIGN                                                   !4, ~13
         11      > JMP                                                      ->14
   11    12    >   SUB                                              ~15     !2, !0
         13        ASSIGN                                                   !4, ~15
   13    14    >   CONCAT                                           ~17     !4, '%0A'
         15        ECHO                                                     ~17
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.53 ms | 1393 KiB | 13 Q