3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sum = 0.1 + 0.3; echo "Sum is ". $sum ."\n"; if ($sum != 1){ echo "$sum is not equal to 0.4"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 9
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
filename:       /in/rZk6K
function name:  (null)
number of ops:  10
compiled vars:  !0 = $sum
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 0.4
    5     1        CONCAT                                           ~2      'Sum+is+', !0
          2        CONCAT                                           ~3      ~2, '%0A'
          3        ECHO                                                     ~3
    7     4        IS_NOT_EQUAL                                             !0, 1
          5      > JMPZ                                                     ~4, ->9
    8     6    >   NOP                                                      
          7        FAST_CONCAT                                      ~5      !0, '+is+not+equal+to+0.4'
          8        ECHO                                                     ~5
    9     9    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
15.68 ms | 460 KiB | 7 Q