3v4l.org

run code in 300+ PHP versions simultaneously
<?php $total = 12.63; $discount = -23; echo round(($total / 100) * $discount,2);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BJHDb
function name:  (null)
number of ops:  10
compiled vars:  !0 = $total, !1 = $discount
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 12.63
    3     1        ASSIGN                                                   !1, -23
    5     2        INIT_FCALL                                               'round'
          3        DIV                                              ~4      !0, 100
          4        MUL                                              ~5      !1, ~4
          5        SEND_VAL                                                 ~5
          6        SEND_VAL                                                 2
          7        DO_ICALL                                         $6      
          8        ECHO                                                     $6
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.25 ms | 1394 KiB | 15 Q