3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "Numeric strings will be converted into an integer:\n"; var_dump(array( 'n-n' => -1, 1 => 1, '1' => '1', '-1' => '-1', '1.1' => '1.1', 's1' => 's1', )); echo "Floating point numbers will be converted into an integer:\n"; var_dump(array( -1 => -1, 0 => 0, 1 => 1, -1.9 => -1.9, 0.9 => 0.9, 1.9 => 1.9 )); echo "Booleans will be converted into an integer:\n"; var_dump(array( 0 => 0, 1 => 1, true => true, false => false, )); echo "NULL will be converted into an empty string:\n"; var_dump(array( '' => '', null => null, ));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pd70o
function name:  (null)
number of ops:  17
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ECHO                                                     'Numeric+strings+will+be+converted+into+an+integer%3A%0A'
    4     1        INIT_FCALL                                               'var_dump'
    5     2        SEND_VAL                                                 <array>
          3        DO_ICALL                                                 
   14     4        ECHO                                                     'Floating+point+numbers+will+be+converted+into+an+integer%3A%0A'
   15     5        INIT_FCALL                                               'var_dump'
   16     6        SEND_VAL                                                 <array>
          7        DO_ICALL                                                 
   25     8        ECHO                                                     'Booleans+will+be+converted+into+an+integer%3A%0A'
   26     9        INIT_FCALL                                               'var_dump'
   27    10        SEND_VAL                                                 <array>
         11        DO_ICALL                                                 
   34    12        ECHO                                                     'NULL+will+be+converted+into+an+empty+string%3A%0A'
   35    13        INIT_FCALL                                               'var_dump'
   36    14        SEND_VAL                                                 <array>
         15        DO_ICALL                                                 
   38    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.42 ms | 1394 KiB | 15 Q