3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = floatval('1.8'); $y = floatval(1.8); if ($x != $y) { echo 'error'; } else { echo 'success'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rHDRJ
function name:  (null)
number of ops:  10
compiled vars:  !0 = $x, !1 = $y
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   CAST                                          5  ~2      '1.8'
          1        ASSIGN                                                   !0, ~2
    3     2        CAST                                          5  ~4      1.8
          3        ASSIGN                                                   !1, ~4
    5     4        IS_NOT_EQUAL                                             !0, !1
          5      > JMPZ                                                     ~6, ->8
    6     6    >   ECHO                                                     'error'
          7      > JMP                                                      ->9
    8     8    >   ECHO                                                     'success'
    9     9    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.77 ms | 1392 KiB | 13 Q