3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "4141.58000-3878.96000-262.62000"; $nums = explode("-",$str); $op1 = $nums[0] - $nums[1] - $nums[2]; var_dump($op1); $bc = bcsub($nums[0],$nums[1],2); $bc = bcsub($bc,$nums[2],2); var_dump($bc);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VSr8R
function name:  (null)
number of ops:  37
compiled vars:  !0 = $str, !1 = $nums, !2 = $op1, !3 = $bc
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '4141.58000-3878.96000-262.62000'
    4     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '-'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $5      
          5        ASSIGN                                                   !1, $5
    5     6        FETCH_DIM_R                                      ~7      !1, 0
          7        FETCH_DIM_R                                      ~8      !1, 1
          8        SUB                                              ~9      ~7, ~8
          9        FETCH_DIM_R                                      ~10     !1, 2
         10        SUB                                              ~11     ~9, ~10
         11        ASSIGN                                                   !2, ~11
    6    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !2
         14        DO_ICALL                                                 
    8    15        INIT_FCALL_BY_NAME                                       'bcsub'
         16        CHECK_FUNC_ARG                                           
         17        FETCH_DIM_FUNC_ARG                               $14     !1, 0
         18        SEND_FUNC_ARG                                            $14
         19        CHECK_FUNC_ARG                                           
         20        FETCH_DIM_FUNC_ARG                               $15     !1, 1
         21        SEND_FUNC_ARG                                            $15
         22        SEND_VAL_EX                                              2
         23        DO_FCALL                                      0  $16     
         24        ASSIGN                                                   !3, $16
    9    25        INIT_FCALL_BY_NAME                                       'bcsub'
         26        SEND_VAR_EX                                              !3
         27        CHECK_FUNC_ARG                                           
         28        FETCH_DIM_FUNC_ARG                               $18     !1, 2
         29        SEND_FUNC_ARG                                            $18
         30        SEND_VAL_EX                                              2
         31        DO_FCALL                                      0  $19     
         32        ASSIGN                                                   !3, $19
   10    33        INIT_FCALL                                               'var_dump'
         34        SEND_VAR                                                 !3
         35        DO_ICALL                                                 
         36      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.11 ms | 1401 KiB | 17 Q