3v4l.org

run code in 300+ PHP versions simultaneously
<?php $new_q = 8.345; $remain_q = 0.075; $actual_q = $remain_q + 8.27; $output['new_q'] = number_format($new_q,20,",","."); $output['actual_q'] = number_format($actual_q,20,",","."); if( $new_q !== $actual_q ){ print_r($output); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 22, Position 2 = 25
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 25
filename:       /in/gDZFl
function name:  (null)
number of ops:  26
compiled vars:  !0 = $new_q, !1 = $remain_q, !2 = $actual_q, !3 = $output
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 8.345
    4     1        ASSIGN                                                   !1, 0.075
    5     2        ADD                                              ~6      !1, 8.27
          3        ASSIGN                                                   !2, ~6
    8     4        INIT_FCALL                                               'number_format'
          5        SEND_VAR                                                 !0
          6        SEND_VAL                                                 20
          7        SEND_VAL                                                 '%2C'
          8        SEND_VAL                                                 '.'
          9        DO_ICALL                                         $9      
         10        ASSIGN_DIM                                               !3, 'new_q'
         11        OP_DATA                                                  $9
    9    12        INIT_FCALL                                               'number_format'
         13        SEND_VAR                                                 !2
         14        SEND_VAL                                                 20
         15        SEND_VAL                                                 '%2C'
         16        SEND_VAL                                                 '.'
         17        DO_ICALL                                         $11     
         18        ASSIGN_DIM                                               !3, 'actual_q'
         19        OP_DATA                                                  $11
   11    20        IS_NOT_IDENTICAL                                         !0, !2
         21      > JMPZ                                                     ~12, ->25
   12    22    >   INIT_FCALL                                               'print_r'
         23        SEND_VAR                                                 !3
         24        DO_ICALL                                                 
   13    25    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.07 ms | 1003 KiB | 15 Q