3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace MyProject { const CONNECT_OK = 1; class Connection { /* ... */ } function connect() { /* ... */ } } namespace { // global code session_start(); $a = MyProject\connect(); echo MyProject\Connection::start(); } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Fv46l
function name:  (null)
number of ops:  10
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   DECLARE_CONST                                            'MyProject%5CCONNECT_OK', 1
   10     1        INIT_FCALL                                               'session_start'
          2        DO_ICALL                                                 
   11     3        INIT_FCALL                                               'myproject%5Cconnect'
          4        DO_FCALL                                      0  $2      
          5        ASSIGN                                                   !0, $2
   12     6        INIT_STATIC_METHOD_CALL                                  'MyProject%5CConnection', 'start'
          7        DO_FCALL                                      0  $4      
          8        ECHO                                                     $4
   14     9      > RETURN                                                   1

Function myproject%5Cconnect:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Fv46l
function name:  MyProject\connect
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E > > RETURN                                                   null

End of function myproject%5Cconnect

Class MyProject\Connection: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
192.24 ms | 1396 KiB | 16 Q