3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo {}; $out = []; var_dump(Foo::__set_state(array($out))); 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/3I3Dg
function name:  (null)
number of ops:  26
compiled vars:  !0 = $out
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                                   !0, <array>
    6     1        INIT_FCALL                                               'var_dump'
          2        INIT_STATIC_METHOD_CALL                                  'Foo', '__set_state'
          3        INIT_ARRAY                                       ~2      !0
          4        SEND_VAL_EX                                              ~2
          5        DO_FCALL                                      0  $3      
          6        SEND_VAR                                                 $3
          7        DO_ICALL                                                 
    8     8        INIT_FCALL                                               'var_dump'
          9        NEW                                              $5      'Foo'
         10        DO_FCALL                                      0          
         11        INSTANCEOF                                       ~7      $5, 'stdClass'
         12        SEND_VAL                                                 ~7
         13        DO_ICALL                                                 
    9    14        INIT_FCALL                                               'var_dump'
         15        CAST                                          8  ~9      <array>
         16        INSTANCEOF                                       ~10     ~9, 'stdClass'
         17        SEND_VAL                                                 ~10
         18        DO_ICALL                                                 
   10    19        INIT_FCALL                                               'var_dump'
         20        NEW                                              $12     'stdClass'
         21        DO_FCALL                                      0          
         22        INSTANCEOF                                       ~14     $12, 'stdClass'
         23        SEND_VAL                                                 ~14
         24        DO_ICALL                                                 
         25      > RETURN                                                   1

Class Foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
180.37 ms | 1395 KiB | 15 Q