3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo {}; var_dump((new Foo) instanceof \stdClass); var_dump((((object) []) instanceof \stdClass )); var_dump((new \stdClass) instanceof \stdClass);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qH7u8
function name:  (null)
number of ops:  18
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL                                               'var_dump'
          1        NEW                                              $0      'Foo'
          2        DO_FCALL                                      0          
          3        INSTANCEOF                                       ~2      $0, 'stdClass'
          4        SEND_VAL                                                 ~2
          5        DO_ICALL                                                 
    6     6        INIT_FCALL                                               'var_dump'
          7        CAST                                          8  ~4      <array>
          8        INSTANCEOF                                       ~5      ~4, 'stdClass'
          9        SEND_VAL                                                 ~5
         10        DO_ICALL                                                 
    7    11        INIT_FCALL                                               'var_dump'
         12        NEW                                              $7      'stdClass'
         13        DO_FCALL                                      0          
         14        INSTANCEOF                                       ~9      $7, 'stdClass'
         15        SEND_VAL                                                 ~9
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Class Foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.34 ms | 1394 KiB | 15 Q