3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); namespace Forum; class Message {} namespace Messenger; class Message {} $forumMessage = new \Forum\Message; $messengerMessage = new \Messenger\Message; var_dump($forumMessage::class); var_dump($messengerMessage::class);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cTRXc
function name:  (null)
number of ops:  15
compiled vars:  !0 = $forumMessage, !1 = $messengerMessage
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   NEW                                              $2      'Forum%5CMessage'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   15     3        NEW                                              $5      'Messenger%5CMessage'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !1, $5
   17     6        INIT_NS_FCALL_BY_NAME                                    'Messenger%5Cvar_dump'
          7        FETCH_CLASS_NAME                                 ~8      !0
          8        SEND_VAL_EX                                              ~8
          9        DO_FCALL                                      0          
   18    10        INIT_NS_FCALL_BY_NAME                                    'Messenger%5Cvar_dump'
         11        FETCH_CLASS_NAME                                 ~10     !1
         12        SEND_VAL_EX                                              ~10
         13        DO_FCALL                                      0          
         14      > RETURN                                                   1

Class Forum\Message: [no user functions]
Class Messenger\Message: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.45 ms | 1450 KiB | 14 Q