3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test1 = null; $test2 = 'ok'; $test3 = $test1 ?? $test2; echo $test3;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/71Rev
function name:  (null)
number of ops:  7
compiled vars:  !0 = $test1, !1 = $test2, !2 = $test3
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, null
    4     1        ASSIGN                                                   !1, 'ok'
    6     2        COALESCE                                         ~5      !0
          3        QM_ASSIGN                                        ~5      !1
          4        ASSIGN                                                   !2, ~5
          5        ECHO                                                     !2
          6      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.24 ms | 1392 KiB | 13 Q