3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A {} assert(new A instanceof A, new LogicException('wrong place at a wrong time')); // @todo nicify it assert(new B instanceof A, new LogicException('wrong place at a wrong time')); // @todo nicify it
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/W2UqK
function name:  (null)
number of ops:  23
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSERT_CHECK                                             
          1        INIT_FCALL                                               'assert'
          2        NEW                                              $0      'A'
          3        DO_FCALL                                      0          
          4        INSTANCEOF                                       ~2      $0, 'A'
          5        SEND_VAL                                                 ~2
          6        NEW                                              $3      'LogicException'
          7        SEND_VAL_EX                                              'wrong+place+at+a+wrong+time'
          8        DO_FCALL                                      0          
          9        SEND_VAR                                                 $3
         10        DO_ICALL                                                 
    5    11        ASSERT_CHECK                                             
         12        INIT_FCALL                                               'assert'
         13        NEW                                              $6      'B'
         14        DO_FCALL                                      0          
         15        INSTANCEOF                                       ~8      $6, 'A'
         16        SEND_VAL                                                 ~8
         17        NEW                                              $9      'LogicException'
         18        SEND_VAL_EX                                              'wrong+place+at+a+wrong+time'
         19        DO_FCALL                                      0          
         20        SEND_VAR                                                 $9
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Class A: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147 ms | 1395 KiB | 15 Q