3v4l.org

run code in 300+ PHP versions simultaneously
<?php $value = 4294967295; echo 'value is float: ' . (($value >> 32 - 1) & 1); //OUTPUT: value is string: 1 $value = '4294967295'; echo 'value is string: ' . (($value >> 32 - 1) & 1); //OUTPUT: value is string: 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IQ1CG
function name:  (null)
number of ops:  11
compiled vars:  !0 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 4294967295
    4     1        SR                                               ~2      !0, 31
          2        BW_AND                                           ~3      ~2, 1
          3        CONCAT                                           ~4      'value+is+float%3A+', ~3
          4        ECHO                                                     ~4
    5     5        ASSIGN                                                   !0, '4294967295'
    6     6        SR                                               ~6      !0, 31
          7        BW_AND                                           ~7      ~6, 1
          8        CONCAT                                           ~8      'value+is+string%3A+', ~7
          9        ECHO                                                     ~8
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.65 ms | 1392 KiB | 13 Q