3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { static $test = 2+2; } echo Test::TEST . "\n"; echo Test::$test . "\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YEMFO
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   FETCH_CLASS_CONSTANT                             ~0      'Test', 'TEST'
          1        CONCAT                                           ~1      ~0, '%0A'
          2        ECHO                                                     ~1
   10     3        FETCH_STATIC_PROP_R          unknown             ~2      'test'
          4        CONCAT                                           ~3      ~2, '%0A'
          5        ECHO                                                     ~3
          6      > RETURN                                                   1

Class Test: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.17 ms | 1396 KiB | 13 Q