3v4l.org

run code in 300+ PHP versions simultaneously
<?php $numero_grande = 2147483647; var_dump($numero_grande); // saida: int(2147483647) $numero_grande = 2147483648; var_dump($numero_grande); // saida: float(2147483648) // é válido também para inteiros hexadecimais entre 2^31 e 2^32-1: var_dump( 0xffffffff ); // output: float(4294967295) // porém não é válido para hexadecimais com valores acima de 2^32-1: var_dump( 0x100000000 ); // output: int(2147483647) $milhao = 1000000; $numero_grande = 50000 * $milhao; var_dump($numero_grande); // saida: float(50000000000)
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PSbZs
function name:  (null)
number of ops:  21
compiled vars:  !0 = $numero_grande, !1 = $milhao
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 2147483647
    3     1        INIT_FCALL                                               'var_dump'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
    6     4        ASSIGN                                                   !0, 2147483648
    7     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                                 
   11     8        INIT_FCALL                                               'var_dump'
          9        SEND_VAL                                                 4294967295
         10        DO_ICALL                                                 
   15    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAL                                                 4294967296
         13        DO_ICALL                                                 
   18    14        ASSIGN                                                   !1, 1000000
   19    15        MUL                                              ~9      !1, 50000
         16        ASSIGN                                                   !0, ~9
   20    17        INIT_FCALL                                               'var_dump'
         18        SEND_VAR                                                 !0
         19        DO_ICALL                                                 
   21    20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
186.89 ms | 1395 KiB | 15 Q