3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { const TEST = 1 + 1; 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/WXdY2
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   ECHO                                                     '2%0A'
   11     1        FETCH_STATIC_PROP_R          unknown             ~0      'test'
          2        CONCAT                                           ~1      ~0, '%0A'
          3        ECHO                                                     ~1
          4      > RETURN                                                   1

Class Test: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.23 ms | 1392 KiB | 13 Q