3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace AltMath; const M_PI = 3; namespace UsingAltMath; use const AltMath\M_PI; static $pi = M_PI; var_dump($pi);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/viHTv
function name:  (null)
number of ops:  8
compiled vars:  !0 = $pi
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CONST                                            'AltMath%5CM_PI', 3
    7     1        ZEND_BIND_INIT_STATIC_OR_JMP                             !0
          2        FETCH_CONSTANT                                   ~1      'AltMath%5CM_PI'
          3        BIND_STATIC                                              !0, ~1
    8     4        INIT_NS_FCALL_BY_NAME                                    'UsingAltMath%5Cvar_dump'
          5        SEND_VAR_EX                                              !0
          6        DO_FCALL                                      0          
          7      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.7 ms | 998 KiB | 14 Q