3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = NULL; $y = ''; $z = 3; $x = $x ?? $y ?? $z; var_dump($x);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3GgDO
function name:  (null)
number of ops:  12
compiled vars:  !0 = $x, !1 = $y, !2 = $z
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, null
    4     1        ASSIGN                                                   !1, ''
    5     2        ASSIGN                                                   !2, 3
    6     3        COALESCE                                         ~6      !0
          4        COALESCE                                         ~7      !1
          5        QM_ASSIGN                                        ~7      !2
          6        QM_ASSIGN                                        ~6      ~7
          7        ASSIGN                                                   !0, ~6
    7     8        INIT_FCALL                                               'var_dump'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.86 ms | 1394 KiB | 15 Q