3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types = 1); class HelloWorld { public function sayHello(?string $class): void { var_dump(new stdClass instanceof $class); } } (new HelloWorld)->sayHello(null);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MAigb
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   NEW                                              $0      'HelloWorld'
          1        DO_FCALL                                      0          
          2        INIT_METHOD_CALL                                         $0, 'sayHello'
          3        SEND_VAL_EX                                              null
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Class HelloWorld:
Function sayhello:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MAigb
function name:  sayHello
number of ops:  9
compiled vars:  !0 = $class
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    7     1        INIT_FCALL                                               'var_dump'
          2        NEW                                              $1      'stdClass'
          3        DO_FCALL                                      0          
          4        FETCH_CLASS                                   0  $3      !0
          5        INSTANCEOF                                       ~4      $1, $3
          6        SEND_VAL                                                 ~4
          7        DO_ICALL                                                 
    8     8      > RETURN                                                   null

End of function sayhello

End of class HelloWorld.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.04 ms | 1010 KiB | 14 Q