3v4l.org

run code in 300+ PHP versions simultaneously
<?php $precoBase = (float)71612.54; $sumLotes= array_sum(array((float)4568.20,(float)26370.24,(float)13986.00,(float)1745.60,(float)18295.00,(float)6647.50)); if ($precoBase === $sumLotes) { // Comparing value and data type. echo 'OK'; }else{ echo 'LOLPHP - NOK' . PHP_EOL; var_dump($precoBase,$sumLotes); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 22
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 27
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jm7pj
function name:  (null)
number of ops:  28
compiled vars:  !0 = $precoBase, !1 = $sumLotes
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   CAST                                          5  ~2      71612.5
          1        ASSIGN                                                   !0, ~2
    4     2        INIT_FCALL                                               'array_sum'
          3        CAST                                          5  ~4      4568.2
          4        INIT_ARRAY                                       ~5      ~4
          5        CAST                                          5  ~6      26370.2
          6        ADD_ARRAY_ELEMENT                                ~5      ~6
          7        CAST                                          5  ~7      13986
          8        ADD_ARRAY_ELEMENT                                ~5      ~7
          9        CAST                                          5  ~8      1745.6
         10        ADD_ARRAY_ELEMENT                                ~5      ~8
         11        CAST                                          5  ~9      18295
         12        ADD_ARRAY_ELEMENT                                ~5      ~9
         13        CAST                                          5  ~10     6647.5
         14        ADD_ARRAY_ELEMENT                                ~5      ~10
         15        SEND_VAL                                                 ~5
         16        DO_ICALL                                         $11     
         17        ASSIGN                                                   !1, $11
    6    18        IS_IDENTICAL                                             !0, !1
         19      > JMPZ                                                     ~13, ->22
    7    20    >   ECHO                                                     'OK'
    6    21      > JMP                                                      ->27
    9    22    >   ECHO                                                     'LOLPHP+-+NOK%0A'
   10    23        INIT_FCALL                                               'var_dump'
         24        SEND_VAR                                                 !0
         25        SEND_VAR                                                 !1
         26        DO_ICALL                                                 
   11    27    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.23 ms | 1460 KiB | 15 Q