3v4l.org

run code in 300+ PHP versions simultaneously
<?php final class Color { private const RED = 'red'; private const BLUE = 'blue'; public static function __callStatic($a, $b) { var_dump($a, $b); } } Color::RED;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/N3eev
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', 'RED'
          1        FREE                                                     ~0
   15     2      > RETURN                                                   1

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

End of function __callstatic

End of class Color.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
185.4 ms | 1398 KiB | 15 Q