3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "Numeric strings will be converted into an integer\n"; var_dump(array( 1 => 1, '1' => '1', 's1' => 's1', )); 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, )); echo "A resource will be converted into an integer:\n"; var_dump(array( STDIN => 'STDIN', ));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/drhtO
function name:  (null)
number of ops:  19
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ECHO                                                     'Numeric+strings+will+be+converted+into+an+integer%0A'
    4     1        INIT_FCALL                                               'var_dump'
    5     2        SEND_VAL                                                 <array>
          3        DO_ICALL                                                 
   10     4        ECHO                                                     'Booleans+will+be+converted+into+an+integer%3A%0A'
   11     5        INIT_FCALL                                               'var_dump'
   12     6        SEND_VAL                                                 <array>
          7        DO_ICALL                                                 
   18     8        ECHO                                                     'NULL+will+be+converted+into+an+empty+string%3A%0A'
   19     9        INIT_FCALL                                               'var_dump'
   20    10        SEND_VAL                                                 <array>
         11        DO_ICALL                                                 
   24    12        ECHO                                                     'A+resource+will+be+converted+into+an+integer%3A%0A'
   25    13        INIT_FCALL                                               'var_dump'
   26    14        FETCH_CONSTANT                                   ~3      'STDIN'
         15        INIT_ARRAY                                       ~4      'STDIN', ~3
         16        SEND_VAL                                                 ~4
         17        DO_ICALL                                                 
   27    18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.47 ms | 1395 KiB | 15 Q