3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
128.38 ms | 1451 KiB | 14 Q