3v4l.org

run code in 300+ PHP versions simultaneously
<?php $employee_salary = 45000.00; $days = 29; $totaldays = 20; $deduction = 10000.00; $emp_salary= $totaldays*(round($employee_salary/$days)); echo $emppp= number_format($emp_salary-$deduction ,2);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oftfC
function name:  (null)
number of ops:  18
compiled vars:  !0 = $employee_salary, !1 = $days, !2 = $totaldays, !3 = $deduction, !4 = $emp_salary, !5 = $emppp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 45000
    4     1        ASSIGN                                                   !1, 29
    5     2        ASSIGN                                                   !2, 20
    6     3        ASSIGN                                                   !3, 10000
    7     4        INIT_FCALL                                               'round'
          5        DIV                                              ~10     !0, !1
          6        SEND_VAL                                                 ~10
          7        DO_ICALL                                         $11     
          8        MUL                                              ~12     !2, $11
          9        ASSIGN                                                   !4, ~12
    9    10        INIT_FCALL                                               'number_format'
         11        SUB                                              ~14     !4, !3
         12        SEND_VAL                                                 ~14
         13        SEND_VAL                                                 2
         14        DO_ICALL                                         $15     
         15        ASSIGN                                           ~16     !5, $15
         16        ECHO                                                     ~16
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.88 ms | 1394 KiB | 17 Q