3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = "0.0000"; var_dump( $a === 0, $a == 0 && is_float($a), floatval($a) == 0 );
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
filename:       /in/T7VXD
function name:  (null)
number of ops:  14
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '0.0000'
    5     1        INIT_FCALL                                               'var_dump'
    6     2        IS_IDENTICAL                                     ~2      !0, 0
          3        SEND_VAL                                                 ~2
    7     4        IS_EQUAL                                         ~3      !0, 0
          5      > JMPZ_EX                                          ~3      ~3, ->8
          6    >   TYPE_CHECK                                   32  ~4      !0
          7        BOOL                                             ~3      ~4
          8    >   SEND_VAL                                                 ~3
    8     9        CAST                                          5  ~5      !0
         10        IS_EQUAL                                         ~6      ~5, 0
         11        SEND_VAL                                                 ~6
         12        DO_ICALL                                                 
    9    13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.69 ms | 1394 KiB | 15 Q