3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace This\Is\Just\A\Test; class X extends \DateTime { } $a = new DateTime(); $b = new X(); var_export(is_a($a, 'DateTime')); var_export(is_a($b, 'DateTime'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MNQ8t
function name:  (null)
number of ops:  21
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   NEW                                              $2      'This%5CIs%5CJust%5CA%5CTest%5CDateTime'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    8     3        NEW                                              $5      'This%5CIs%5CJust%5CA%5CTest%5CX'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !1, $5
   10     6        INIT_NS_FCALL_BY_NAME                                    'This%5CIs%5CJust%5CA%5CTest%5Cvar_export'
          7        INIT_NS_FCALL_BY_NAME                                    'This%5CIs%5CJust%5CA%5CTest%5Cis_a'
          8        SEND_VAR_EX                                              !0
          9        SEND_VAL_EX                                              'DateTime'
         10        DO_FCALL                                      0  $8      
         11        SEND_VAR_NO_REF_EX                                       $8
         12        DO_FCALL                                      0          
   11    13        INIT_NS_FCALL_BY_NAME                                    'This%5CIs%5CJust%5CA%5CTest%5Cvar_export'
         14        INIT_NS_FCALL_BY_NAME                                    'This%5CIs%5CJust%5CA%5CTest%5Cis_a'
         15        SEND_VAR_EX                                              !1
         16        SEND_VAL_EX                                              'DateTime'
         17        DO_FCALL                                      0  $10     
         18        SEND_VAR_NO_REF_EX                                       $10
         19        DO_FCALL                                      0          
         20      > RETURN                                                   1

Class This\Is\Just\A\Test\X: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.25 ms | 1395 KiB | 17 Q