3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo PHP_INT_MAX . "\n"; var_dump(min(\PHP_INT_MAX-1, (double)\PHP_INT_MAX)); var_dump(number_format(min((double)\PHP_INT_MAX, \PHP_INT_MAX-1), 1));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZsosL
function name:  (null)
number of ops:  22
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ECHO                                                     '9223372036854775807%0A'
    5     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'min'
          3        SEND_VAL                                                 9223372036854775806
          4        CAST                                          5  ~0      9223372036854775807
          5        SEND_VAL                                                 ~0
          6        DO_ICALL                                         $1      
          7        SEND_VAR                                                 $1
          8        DO_ICALL                                                 
    6     9        INIT_FCALL                                               'var_dump'
         10        INIT_FCALL                                               'number_format'
         11        INIT_FCALL                                               'min'
         12        CAST                                          5  ~3      9223372036854775807
         13        SEND_VAL                                                 ~3
         14        SEND_VAL                                                 9223372036854775806
         15        DO_ICALL                                         $4      
         16        SEND_VAR                                                 $4
         17        SEND_VAL                                                 1
         18        DO_ICALL                                         $5      
         19        SEND_VAR                                                 $5
         20        DO_ICALL                                                 
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.82 ms | 999 KiB | 16 Q