3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(number_format("",0)); var_dump(number_format(null,0)); var_dump(number_format(false,0)); var_dump(number_format('1234567890123456789',0)); var_dump(number_format((float)'1234567890123456789',0));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aol6I
function name:  (null)
number of ops:  37
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'number_format'
          2        SEND_VAL                                                 ''
          3        SEND_VAL                                                 0
          4        DO_ICALL                                         $0      
          5        SEND_VAR                                                 $0
          6        DO_ICALL                                                 
    4     7        INIT_FCALL                                               'var_dump'
          8        INIT_FCALL                                               'number_format'
          9        SEND_VAL                                                 null
         10        SEND_VAL                                                 0
         11        DO_ICALL                                         $2      
         12        SEND_VAR                                                 $2
         13        DO_ICALL                                                 
    6    14        INIT_FCALL                                               'var_dump'
         15        INIT_FCALL                                               'number_format'
         16        SEND_VAL                                                 <false>
         17        SEND_VAL                                                 0
         18        DO_ICALL                                         $4      
         19        SEND_VAR                                                 $4
         20        DO_ICALL                                                 
    8    21        INIT_FCALL                                               'var_dump'
         22        INIT_FCALL                                               'number_format'
         23        SEND_VAL                                                 '1234567890123456789'
         24        SEND_VAL                                                 0
         25        DO_ICALL                                         $6      
         26        SEND_VAR                                                 $6
         27        DO_ICALL                                                 
   10    28        INIT_FCALL                                               'var_dump'
         29        INIT_FCALL                                               'number_format'
         30        CAST                                          5  ~8      '1234567890123456789'
         31        SEND_VAL                                                 ~8
         32        SEND_VAL                                                 0
         33        DO_ICALL                                         $9      
         34        SEND_VAR                                                 $9
         35        DO_ICALL                                                 
         36      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.16 ms | 941 KiB | 18 Q