3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('PRIORITY_INQUIRER_OBJECT', 25); define('PRIORITY_INQUIRER_QUESTION', 5); $sum = 30; $object = (int) (round(PRIORITY_INQUIRER_OBJECT / $sum, 1) * 100); $question = (int) (round(PRIORITY_INQUIRER_QUESTION / $sum, 1) * 100); $commercial = (int) (100 - ($question + $object)); var_dump($object, $question, $commercial);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ouM59
function name:  (null)
number of ops:  37
compiled vars:  !0 = $sum, !1 = $object, !2 = $question, !3 = $commercial
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'define'
          1        SEND_VAL                                                 'PRIORITY_INQUIRER_OBJECT'
          2        SEND_VAL                                                 25
          3        DO_ICALL                                                 
    4     4        INIT_FCALL                                               'define'
          5        SEND_VAL                                                 'PRIORITY_INQUIRER_QUESTION'
          6        SEND_VAL                                                 5
          7        DO_ICALL                                                 
    5     8        ASSIGN                                                   !0, 30
    7     9        INIT_FCALL                                               'round'
         10        FETCH_CONSTANT                                   ~7      'PRIORITY_INQUIRER_OBJECT'
         11        DIV                                              ~8      ~7, !0
         12        SEND_VAL                                                 ~8
         13        SEND_VAL                                                 1
         14        DO_ICALL                                         $9      
         15        MUL                                              ~10     $9, 100
         16        CAST                                          4  ~11     ~10
         17        ASSIGN                                                   !1, ~11
    8    18        INIT_FCALL                                               'round'
         19        FETCH_CONSTANT                                   ~13     'PRIORITY_INQUIRER_QUESTION'
         20        DIV                                              ~14     ~13, !0
         21        SEND_VAL                                                 ~14
         22        SEND_VAL                                                 1
         23        DO_ICALL                                         $15     
         24        MUL                                              ~16     $15, 100
         25        CAST                                          4  ~17     ~16
         26        ASSIGN                                                   !2, ~17
    9    27        ADD                                              ~19     !2, !1
         28        SUB                                              ~20     100, ~19
         29        CAST                                          4  ~21     ~20
         30        ASSIGN                                                   !3, ~21
   11    31        INIT_FCALL                                               'var_dump'
         32        SEND_VAR                                                 !1
         33        SEND_VAR                                                 !2
         34        SEND_VAR                                                 !3
         35        DO_ICALL                                                 
         36      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.83 ms | 1396 KiB | 19 Q