3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = "1588.2-1482.07-106.13"; $arr = explode("-",$a); $x = $arr[0] - $arr[1] - $arr[2]; $x = $x * 1; echo bcsub(bcsub($arr[0], $arr[1]), $arr[2]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QS4Un
function name:  (null)
number of ops:  30
compiled vars:  !0 = $a, !1 = $arr, !2 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '1588.2-1482.07-106.13'
    4     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '-'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
    6     6        FETCH_DIM_R                                      ~6      !1, 0
          7        FETCH_DIM_R                                      ~7      !1, 1
          8        SUB                                              ~8      ~6, ~7
          9        FETCH_DIM_R                                      ~9      !1, 2
         10        SUB                                              ~10     ~8, ~9
         11        ASSIGN                                                   !2, ~10
    7    12        MUL                                              ~12     !2, 1
         13        ASSIGN                                                   !2, ~12
    8    14        INIT_FCALL_BY_NAME                                       'bcsub'
         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        DO_FCALL                                      0  $16     
         23        SEND_VAR_NO_REF_EX                                       $16
         24        CHECK_FUNC_ARG                                           
         25        FETCH_DIM_FUNC_ARG                               $17     !1, 2
         26        SEND_FUNC_ARG                                            $17
         27        DO_FCALL                                      0  $18     
         28        ECHO                                                     $18
         29      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.92 ms | 1395 KiB | 15 Q