3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('WEB_NAME', 'web name'); $templateName = 'web'; $templateName = strtoupper($templateName) . '_NAME'; $templateName = self::$templateName; echo $templateName;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3JIfk
function name:  (null)
number of ops:  14
compiled vars:  !0 = $templateName
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'define'
          1        SEND_VAL                                                 'WEB_NAME'
          2        SEND_VAL                                                 'web+name'
          3        DO_ICALL                                                 
    5     4        ASSIGN                                                   !0, 'web'
    7     5        INIT_FCALL                                               'strtoupper'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $3      
          8        CONCAT                                           ~4      $3, '_NAME'
          9        ASSIGN                                                   !0, ~4
    8    10        FETCH_STATIC_PROP_R          unknown             ~6      'templateName'
         11        ASSIGN                                                   !0, ~6
   10    12        ECHO                                                     !0
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.64 ms | 1394 KiB | 17 Q