3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "1588.2-1482.07-106.13"; $nums = explode("-",$str); $op1 = $nums[0] - $nums[1] - $nums[2]; var_dump($op1);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kpXOE
function name:  (null)
number of ops:  16
compiled vars:  !0 = $str, !1 = $nums, !2 = $op1
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '1588.2-1482.07-106.13'
    3     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '-'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
    4     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
    5    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !2
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.17 ms | 1394 KiB | 17 Q