3v4l.org

run code in 300+ PHP versions simultaneously
<?php $price = 456.78; function lpe($p) { $p = $price; $base = $p * 0.83; $markup = $base * 0.17; $total = $base + $markup; $rounded = ceil($total / 10) * 10; return $rounded; }; $lp = lpe(); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FbANs
function name:  (null)
number of ops:  5
compiled vars:  !0 = $price, !1 = $lp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 456.78
   13     1        INIT_FCALL                                               'lpe'
          2        DO_FCALL                                      0  $3      
          3        ASSIGN                                                   !1, $3
   15     4      > RETURN                                                   1

Function lpe:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FbANs
function name:  lpe
number of ops:  16
compiled vars:  !0 = $p, !1 = $price, !2 = $base, !3 = $markup, !4 = $total, !5 = $rounded
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    6     1        ASSIGN                                                   !0, !1
    7     2        MUL                                              ~7      !0, 0.83
          3        ASSIGN                                                   !2, ~7
    8     4        MUL                                              ~9      !2, 0.17
          5        ASSIGN                                                   !3, ~9
    9     6        ADD                                              ~11     !2, !3
          7        ASSIGN                                                   !4, ~11
   10     8        INIT_FCALL                                               'ceil'
          9        DIV                                              ~13     !4, 10
         10        SEND_VAL                                                 ~13
         11        DO_ICALL                                         $14     
         12        MUL                                              ~15     $14, 10
         13        ASSIGN                                                   !5, ~15
   11    14      > RETURN                                                   !5
   12    15*     > RETURN                                                   null

End of function lpe

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.68 ms | 1402 KiB | 16 Q