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( new stdClass => 'new stdClass', ));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UhMaE
function name:  (null)
number of ops:  20
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        NEW                                              $3      'stdClass'
         15        DO_FCALL                                      0          
         16        INIT_ARRAY                                       ~5      'new+stdClass', $3
         17        SEND_VAL                                                 ~5
         18        DO_ICALL                                                 
   27    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.95 ms | 1395 KiB | 15 Q