3v4l.org

run code in 500+ PHP versions simultaneously
<?php $a = [ 11.12,9.29 ]; $b = 20.41; if(array_sum($a) !== $b) { echo "ERROR: " . (array_sum($a) - $b); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 13
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/48nAm
function name:  (null)
number of ops:  14
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
    6     1        ASSIGN                                                       !1, 20.41
    7     2        INIT_FCALL                                                   'array_sum'
          3        SEND_VAR                                                     !0
          4        DO_ICALL                                             $4      
          5        IS_NOT_IDENTICAL                                             !1, $4
          6      > JMPZ                                                         ~5, ->13
    8     7    >   INIT_FCALL                                                   'array_sum'
          8        SEND_VAR                                                     !0
          9        DO_ICALL                                             $6      
         10        SUB                                                  ~7      $6, !1
         11        CONCAT                                               ~8      'ERROR%3A+', ~7
         12        ECHO                                                         ~8
    9    13    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
207.7 ms | 3301 KiB | 14 Q