3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = null; print('language-prof-' . $foo ?: 'language'); $foo = 'foo'; print('language-prof-' . $foo ?: 'language'); $foo = null; print('language-prof-' . ($foo ?: 'language'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dsNeD
function name:  (null)
number of ops:  16
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, null
    3     1        CONCAT                                           ~2      'language-prof-', !0
          2        JMP_SET                                          ~3      ~2, ->4
          3        QM_ASSIGN                                        ~3      'language'
          4        ECHO                                                     ~3
    5     5        ASSIGN                                                   !0, 'foo'
    6     6        CONCAT                                           ~5      'language-prof-', !0
          7        JMP_SET                                          ~6      ~5, ->9
          8        QM_ASSIGN                                        ~6      'language'
          9        ECHO                                                     ~6
    8    10        ASSIGN                                                   !0, null
    9    11        JMP_SET                                          ~8      !0, ->13
         12        QM_ASSIGN                                        ~8      'language'
         13        CONCAT                                           ~9      'language-prof-', ~8
         14        ECHO                                                     ~9
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.73 ms | 1393 KiB | 13 Q