3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); namespace Forum { class Message {} } namespace Messenger { class Message {} } namespace { $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/EGRHr
function name:  (null)
number of ops:  15
compiled vars:  !0 = $forumMessage, !1 = $messengerMessage
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   NEW                                              $2      'Forum%5CMessage'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   17     3        NEW                                              $5      'Messenger%5CMessage'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !1, $5
   19     6        INIT_FCALL                                               'var_dump'
          7        FETCH_CLASS_NAME                                 ~8      !0
          8        SEND_VAL                                                 ~8
          9        DO_ICALL                                                 
   20    10        INIT_FCALL                                               'var_dump'
         11        FETCH_CLASS_NAME                                 ~10     !1
         12        SEND_VAL                                                 ~10
         13        DO_ICALL                                                 
   21    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:
133.98 ms | 1450 KiB | 14 Q