3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
139.36 ms | 485 KiB | 10 Q