3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = 0.0; if ((int) $foo == $foo) $foo = (int) $foo; var_dump($foo); $foo = 0.1; if ((int) $foo == $foo) $foo = (int) $foo; var_dump($foo);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 6
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 15
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
Branch analysis from position: 6
filename:       /in/S84lB
function name:  (null)
number of ops:  19
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 0
    5     1        CAST                                          4  ~2      !0
          2        IS_EQUAL                                                 !0, ~2
          3      > JMPZ                                                     ~3, ->6
          4    >   CAST                                          4  ~4      !0
          5        ASSIGN                                                   !0, ~4
    7     6    >   INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
    9     9        ASSIGN                                                   !0, 0.1
   11    10        CAST                                          4  ~8      !0
         11        IS_EQUAL                                                 !0, ~8
         12      > JMPZ                                                     ~9, ->15
         13    >   CAST                                          4  ~10     !0
         14        ASSIGN                                                   !0, ~10
   13    15    >   INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.8 ms | 1395 KiB | 15 Q