3v4l.org

run code in 300+ PHP versions simultaneously
<?php printf("%u\n",0xffffffffffffffff ); // 0 printf("%d\n",0xffffffffffffffff ); // 0 printf("%f\n", hexdec("0xffffffffffffffff")+100); // max integer that can be stored as floating pt value (2 ** 53) -1: var_dump( 0x001fffffffffffff ); // float 9.007199254741E+15 var_dump( (int) 0x001fffffffffffff); // int -1
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FojUQ
function name:  (null)
number of ops:  24
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'printf'
          1        SEND_VAL                                                 '%25u%0A'
          2        SEND_VAL                                                 1.84467e+19
          3        DO_ICALL                                                 
    3     4        INIT_FCALL                                               'printf'
          5        SEND_VAL                                                 '%25d%0A'
          6        SEND_VAL                                                 1.84467e+19
          7        DO_ICALL                                                 
    4     8        INIT_FCALL                                               'printf'
          9        SEND_VAL                                                 '%25f%0A'
         10        INIT_FCALL                                               'hexdec'
         11        SEND_VAL                                                 '0xffffffffffffffff'
         12        DO_ICALL                                         $2      
         13        ADD                                              ~3      $2, 100
         14        SEND_VAL                                                 ~3
         15        DO_ICALL                                                 
    7    16        INIT_FCALL                                               'var_dump'
         17        SEND_VAL                                                 9007199254740991
         18        DO_ICALL                                                 
    8    19        INIT_FCALL                                               'var_dump'
         20        CAST                                          4  ~6      9007199254740991
         21        SEND_VAL                                                 ~6
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.31 ms | 1386 KiB | 19 Q