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; var_dump($x); var_dump($x==(float)'1.1368683772162E-13');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BFBI1
function name:  (null)
number of ops:  23
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                                               'var_dump'
         15        SEND_VAR                                                 !2
         16        DO_ICALL                                                 
    9    17        INIT_FCALL                                               'var_dump'
         18        CAST                                          5  ~15     '1.1368683772162E-13'
         19        IS_EQUAL                                         ~16     !2, ~15
         20        SEND_VAL                                                 ~16
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.04 ms | 942 KiB | 18 Q