3v4l.org

run code in 500+ PHP versions simultaneously
<?php declare(strict_types=1); error_reporting(E_ALL); enum blub: string { case ONE = 'one'; case TWO = 'two'; } $array = [ blub::ONE => 'one', blub::TWO => 'two', ];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/a8Uf5
function name:  (null)
number of ops:  10
compiled vars:  !0 = $array
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'error_reporting'
          1        SEND_VAL                                                     30719
          2        DO_ICALL                                                     
    6     3        DECLARE_CLASS                                                'blub'
   12     4        FETCH_CLASS_CONSTANT                                 ~2      'blub', 'ONE'
          5        INIT_ARRAY                                           ~3      'one', ~2
   13     6        FETCH_CLASS_CONSTANT                                 ~4      'blub', 'TWO'
          7        ADD_ARRAY_ELEMENT                                    ~3      'two', ~4
   11     8        ASSIGN                                                       !0, ~3
   14     9      > RETURN                                                       1

Class blub: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
135.1 ms | 488 KiB | 10 Q