3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = "152.54"; $b = 152.54 + 0; $aa = (float) 152.54; if ($aa != $b) { echo "No"; } else { echo "Yes!"; }
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/h9172
function name:  (null)
number of ops:  10
compiled vars:  !0 = $a, !1 = $b, !2 = $aa
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '152.54'
    4     1        ASSIGN                                                   !1, 152.54
    5     2        CAST                                          5  ~5      152.54
          3        ASSIGN                                                   !2, ~5
    7     4        IS_NOT_EQUAL                                             !2, !1
          5      > JMPZ                                                     ~7, ->8
    8     6    >   ECHO                                                     'No'
          7      > JMP                                                      ->9
   10     8    >   ECHO                                                     'Yes%21'
   11     9    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.42 ms | 1393 KiB | 13 Q