3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.39 ms | 1385 KiB | 15 Q