3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo($x) { $y = new $x(); assert(is_object($y) === (gettype($y) === 'object')); } foo('__PHP_Incomplete_Class');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MiVGp
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'foo'
          1        SEND_VAL                                                 '__PHP_Incomplete_Class'
          2        DO_FCALL                                      0          
          3      > RETURN                                                   1

Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MiVGp
function name:  foo
number of ops:  15
compiled vars:  !0 = $x, !1 = $y
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        FETCH_CLASS                                   0  $2      !0
          2        NEW                                              $3      $2
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !1, $3
    5     5        ASSERT_CHECK                                             
          6        INIT_FCALL                                               'assert'
          7        TYPE_CHECK                                  256  ~6      !1
          8        GET_TYPE                                         ~7      !1
          9        IS_IDENTICAL                                     ~8      ~7, 'object'
         10        IS_IDENTICAL                                     ~9      ~6, ~8
         11        SEND_VAL                                                 ~9
         12        SEND_VAL                                                 'assert%28is_object%28%24y%29+%3D%3D%3D+%28gettype%28%24y%29+%3D%3D%3D+%27object%27%29%29'
         13        DO_ICALL                                                 
    6    14      > RETURN                                                   null

End of function foo

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.39 ms | 1397 KiB | 16 Q