3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('HELLO_WORLD', Constants::HELLO . Constants::WORLD); class Constants { const HELLO = 'Hello '; const WORLD = 'world.'; const HELLO_WORLD = HELLO_WORLD; } echo Constants::HELLO_WORLD;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/f9WXH
function name:  (null)
number of ops:  10
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'define'
          1        SEND_VAL                                                 'HELLO_WORLD'
          2        FETCH_CLASS_CONSTANT                             ~0      'Constants', 'HELLO'
          3        FETCH_CLASS_CONSTANT                             ~1      'Constants', 'WORLD'
          4        CONCAT                                           ~2      ~0, ~1
          5        SEND_VAL                                                 ~2
          6        DO_ICALL                                                 
   11     7        FETCH_CLASS_CONSTANT                             ~4      'Constants', 'HELLO_WORLD'
          8        ECHO                                                     ~4
          9      > RETURN                                                   1

Class Constants: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.09 ms | 1394 KiB | 15 Q