3v4l.org

run code in 300+ PHP versions simultaneously
<?php final class Color { private const RED = 'red'; private const BLUE = 'blue'; public function __get($a) { var_dump($a); } } Color::ARED;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qANfT
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   FETCH_CLASS_CONSTANT                             ~0      'Color', 'ARED'
          1        FREE                                                     ~0
   15     2      > RETURN                                                   1

Class Color:
Function __get:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qANfT
function name:  __get
number of ops:  5
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
   10     1        INIT_FCALL                                               'var_dump'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
   11     4      > RETURN                                                   null

End of function __get

End of class Color.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.92 ms | 1385 KiB | 15 Q