3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Ozzie\WeekDays { const MONDAY = 'monday'; const TUESDAY = 'tuesday'; const WEDNESDAY = 'wednesday'; const THURSDAY = 'thursday'; const FRYDAY = 'fryday'; const SATURDAY = 'saturday'; const SUNDAY = 'sunday'; } namespace Ozzie { class WeekDays { const MONDAY = 'monday'; const TUESDAY = 'tuesday'; const WEDNESDAY = 'wednesday'; const THURSDAY = 'thursday'; const FRYDAY = 'fryday'; const SATURDAY = 'saturday'; const SUNDAY = 'sunday'; } } namespace { use const Ozzie\WeekDays\MONDAY as MONDAY; echo Ozzie\WeekDays\MONDAY . ' - ' . Ozzie\WeekDays::MONDAY . ' - ' . MONDAY; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4peGi
function name:  (null)
number of ops:  15
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   DECLARE_CONST                                            'Ozzie%5CWeekDays%5CMONDAY', 'monday'
    6     1        DECLARE_CONST                                            'Ozzie%5CWeekDays%5CTUESDAY', 'tuesday'
    7     2        DECLARE_CONST                                            'Ozzie%5CWeekDays%5CWEDNESDAY', 'wednesday'
    8     3        DECLARE_CONST                                            'Ozzie%5CWeekDays%5CTHURSDAY', 'thursday'
    9     4        DECLARE_CONST                                            'Ozzie%5CWeekDays%5CFRYDAY', 'fryday'
   10     5        DECLARE_CONST                                            'Ozzie%5CWeekDays%5CSATURDAY', 'saturday'
   11     6        DECLARE_CONST                                            'Ozzie%5CWeekDays%5CSUNDAY', 'sunday'
   31     7        FETCH_CONSTANT                                   ~0      'Ozzie%5CWeekDays%5CMONDAY'
          8        CONCAT                                           ~1      ~0, '+-+'
          9        CONCAT                                           ~2      ~1, 'monday'
         10        CONCAT                                           ~3      ~2, '+-+'
         11        FETCH_CONSTANT                                   ~4      'Ozzie%5CWeekDays%5CMONDAY'
         12        CONCAT                                           ~5      ~3, ~4
         13        ECHO                                                     ~5
   32    14      > RETURN                                                   1

Class Ozzie\WeekDays: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.6 ms | 1441 KiB | 13 Q