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; $date = new DateTime(); 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/O4SaK
function name:  (null)
number of ops:  18
compiled vars:  !0 = $forumMessage, !1 = $messengerMessage, !2 = $date
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   NEW                                              $3      'Forum%5CMessage'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
   15     3        NEW                                              $6      'Messenger%5CMessage'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !1, $6
   16     6        NEW                                              $9      'Messenger%5CDateTime'
          7        DO_FCALL                                      0          
          8        ASSIGN                                                   !2, $9
   18     9        INIT_NS_FCALL_BY_NAME                                    'Messenger%5Cvar_dump'
         10        FETCH_CLASS_NAME                                 ~12     !0
         11        SEND_VAL_EX                                              ~12
         12        DO_FCALL                                      0          
   19    13        INIT_NS_FCALL_BY_NAME                                    'Messenger%5Cvar_dump'
         14        FETCH_CLASS_NAME                                 ~14     !1
         15        SEND_VAL_EX                                              ~14
         16        DO_FCALL                                      0          
         17      > 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:
143.89 ms | 1450 KiB | 14 Q