3v4l.org

run code in 300+ PHP versions simultaneously
<?php class B { static $c = 0; } $x = 'B'; echo $x::$c;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ApYtZ
function name:  (null)
number of ops:  5
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ASSIGN                                                   !0, 'B'
   10     1        FETCH_CLASS                                   0  $2      !0
          2        FETCH_STATIC_PROP_R          unknown             ~3      'c'
          3        ECHO                                                     ~3
          4      > RETURN                                                   1

Class B: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.34 ms | 1396 KiB | 13 Q