3v4l.org

run code in 300+ PHP versions simultaneously
<?php printf("%u",0xffffffffffffffff ); // 0 printf("%d",0xffffffffffffffff ); // 0 // 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 // but can do this: printf("%f", hexdec("ffffffffffffffff"));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KoFNk
function name:  (null)
number of ops:  23
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'printf'
          1        SEND_VAL                                                 '%25u'
          2        SEND_VAL                                                 1.84467e+19
          3        DO_ICALL                                                 
    3     4        INIT_FCALL                                               'printf'
          5        SEND_VAL                                                 '%25d'
          6        SEND_VAL                                                 1.84467e+19
          7        DO_ICALL                                                 
    7     8        INIT_FCALL                                               'var_dump'
          9        SEND_VAL                                                 9007199254740991
         10        DO_ICALL                                                 
    8    11        INIT_FCALL                                               'var_dump'
         12        CAST                                          4  ~3      9007199254740991
         13        SEND_VAL                                                 ~3
         14        DO_ICALL                                                 
   12    15        INIT_FCALL                                               'printf'
         16        SEND_VAL                                                 '%25f'
         17        INIT_FCALL                                               'hexdec'
         18        SEND_VAL                                                 'ffffffffffffffff'
         19        DO_ICALL                                         $5      
         20        SEND_VAR                                                 $5
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.77 ms | 1395 KiB | 19 Q