3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.17 ms | 1395 KiB | 15 Q