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")); printf("%f\n",pow(2,64)-1); // 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/poN6V
function name:  (null)
number of ops:  32
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        SEND_VAR                                                 $2
         14        DO_ICALL                                                 
    5    15        INIT_FCALL                                               'printf'
         16        SEND_VAL                                                 '%25f%0A'
         17        INIT_FCALL                                               'pow'
         18        SEND_VAL                                                 2
         19        SEND_VAL                                                 64
         20        DO_ICALL                                         $4      
         21        SUB                                              ~5      $4, 1
         22        SEND_VAL                                                 ~5
         23        DO_ICALL                                                 
    8    24        INIT_FCALL                                               'var_dump'
         25        SEND_VAL                                                 9007199254740991
         26        DO_ICALL                                                 
    9    27        INIT_FCALL                                               'var_dump'
         28        CAST                                          4  ~8      9007199254740991
         29        SEND_VAL                                                 ~8
         30        DO_ICALL                                                 
         31      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.39 ms | 1387 KiB | 21 Q