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/8XXAb
function name:  (null)
number of ops:  6
compiled vars:  !0 = $pi
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CONST                                            'AltMath%5CM_PI', 3
    8     1        BIND_STATIC                                              !0
    9     2        INIT_NS_FCALL_BY_NAME                                    'UsingAltMath%5Cvar_dump'
          3        SEND_VAR_EX                                              !0
          4        DO_FCALL                                      0          
   10     5      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
180.77 ms | 1393 KiB | 15 Q