3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
195.57 ms | 1395 KiB | 15 Q