3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168 ms | 1394 KiB | 17 Q