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:  6
compiled vars:  !0 = $pi
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CONST                                            'AltMath%5CM_PI', 3
    7     1        BIND_STATIC                                              !0
    8     2        INIT_NS_FCALL_BY_NAME                                    'UsingAltMath%5Cvar_dump'
          3        SEND_VAR_EX                                              !0
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.99 ms | 1398 KiB | 15 Q