3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump( // true 18446744073709552000 > PHP_INT_MAX, // true, as expected.. (18446744073709552000-PHP_INT_MAX) > -1, // false!? wtf? ((int)(18446744073709552000-PHP_INT_MAX)) > -1, // 9223372036854775808 number_format((18446744073709552000-PHP_INT_MAX),0,'.',''), // false: 9223372036854775808 > PHP_INT_MAX, // false!? wtf? ((int)((float)9223372036854775808)) > -1, // ok: float(9.2233720368548E+18) ((float)9223372036854775808), // VERY WRONG: int(-9223372036854775808) ((int)((float)9223372036854775808)) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PYRPM
function name:  (null)
number of ops:  25
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
    5     1        SEND_VAL                                                 <true>
    7     2        SEND_VAL                                                 <true>
    9     3        CAST                                          4  ~0      9.22337e+18
          4        IS_SMALLER                                       ~1      -1, ~0
          5        SEND_VAL                                                 ~1
   11     6        INIT_FCALL                                               'number_format'
          7        SEND_VAL                                                 9.22337e+18
          8        SEND_VAL                                                 0
          9        SEND_VAL                                                 '.'
         10        SEND_VAL                                                 ''
         11        DO_ICALL                                         $2      
         12        SEND_VAR                                                 $2
   13    13        SEND_VAL                                                 <false>
   15    14        CAST                                          5  ~3      9.22337e+18
         15        CAST                                          4  ~4      ~3
         16        IS_SMALLER                                       ~5      -1, ~4
         17        SEND_VAL                                                 ~5
   17    18        CAST                                          5  ~6      9.22337e+18
         19        SEND_VAL                                                 ~6
   19    20        CAST                                          5  ~7      9.22337e+18
         21        CAST                                          4  ~8      ~7
         22        SEND_VAL                                                 ~8
         23        DO_ICALL                                                 
   20    24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.28 ms | 1395 KiB | 17 Q