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 { echo Ozzie\WeekDays\MONDAY . ' - ' . Ozzie\WeekDays::MONDAY; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Z91op
function name:  (null)
number of ops:  12
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'
   29     7        FETCH_CONSTANT                                   ~0      'Ozzie%5CWeekDays%5CMONDAY'
          8        CONCAT                                           ~1      ~0, '+-+'
          9        CONCAT                                           ~2      ~1, 'monday'
         10        ECHO                                                     ~2
   30    11      > RETURN                                                   1

Class Ozzie\WeekDays: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.14 ms | 1397 KiB | 13 Q