3v4l.org

run code in 500+ PHP versions simultaneously
<?php $a = null; $b = 2; $c = $a ?? $b = 3; echo "$a $b $c"; // 3 3
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/X84C1
function name:  (null)
number of ops:  13
compiled vars:  !0 = $a, !1 = $b, !2 = $c
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, null
    4     1        ASSIGN                                                       !1, 2
    5     2        COALESCE                                             ~5      !0
          3        ASSIGN                                               ~6      !1, 3
          4        QM_ASSIGN                                            ~5      ~6
          5        ASSIGN                                                       !2, ~5
    7     6        ROPE_INIT                                         5  ~9      !0
          7        ROPE_ADD                                          1  ~9      ~9, '+'
          8        ROPE_ADD                                          2  ~9      ~9, !1
          9        ROPE_ADD                                          3  ~9      ~9, '+'
         10        ROPE_END                                          4  ~8      ~9, !2
         11        ECHO                                                         ~8
    8    12      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
161.5 ms | 1461 KiB | 13 Q