3v4l.org

run code in 300+ PHP versions simultaneously
<?php $abc['baseA'] = 49; $abc['baseB'] = 49; $base_lvl = 10; $a = round($abc['baseA']/10/2*$base_lvl); $b = round($abc['baseB']/10/2*$base_lvl); echo $a.' '.$b;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7ZJer
function name:  (null)
number of ops:  25
compiled vars:  !0 = $abc, !1 = $base_lvl, !2 = $a, !3 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN_DIM                                               !0, 'baseA'
          1        OP_DATA                                                  49
    4     2        ASSIGN_DIM                                               !0, 'baseB'
          3        OP_DATA                                                  49
    5     4        ASSIGN                                                   !1, 10
    8     5        INIT_FCALL                                               'round'
          6        FETCH_DIM_R                                      ~7      !0, 'baseA'
          7        DIV                                              ~8      ~7, 10
          8        DIV                                              ~9      ~8, 2
          9        MUL                                              ~10     !1, ~9
         10        SEND_VAL                                                 ~10
         11        DO_ICALL                                         $11     
         12        ASSIGN                                                   !2, $11
    9    13        INIT_FCALL                                               'round'
         14        FETCH_DIM_R                                      ~13     !0, 'baseB'
         15        DIV                                              ~14     ~13, 10
         16        DIV                                              ~15     ~14, 2
         17        MUL                                              ~16     !1, ~15
         18        SEND_VAL                                                 ~16
         19        DO_ICALL                                         $17     
         20        ASSIGN                                                   !3, $17
   11    21        CONCAT                                           ~19     !2, '+'
         22        CONCAT                                           ~20     ~19, !3
         23        ECHO                                                     ~20
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.56 ms | 1395 KiB | 15 Q