3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types = 1); class HelloWorld { /** * @param mixed $seed */ public static function sayHello($seed): void { print_r((array) $seed); } } HelloWorld::sayHello([0, 1]); HelloWorld::sayHello('test'); HelloWorld::sayHello(null); HelloWorld::sayHello(new \DateTime());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2INk8
function name:  (null)
number of ops:  15
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   INIT_STATIC_METHOD_CALL                                  'HelloWorld', 'sayHello'
          1        SEND_VAL                                                 <array>
          2        DO_FCALL                                      0          
   15     3        INIT_STATIC_METHOD_CALL                                  'HelloWorld', 'sayHello'
          4        SEND_VAL                                                 'test'
          5        DO_FCALL                                      0          
   16     6        INIT_STATIC_METHOD_CALL                                  'HelloWorld', 'sayHello'
          7        SEND_VAL                                                 null
          8        DO_FCALL                                      0          
   17     9        INIT_STATIC_METHOD_CALL                                  'HelloWorld', 'sayHello'
         10        NEW                                              $3      'DateTime'
         11        DO_FCALL                                      0          
         12        SEND_VAR                                                 $3
         13        DO_FCALL                                      0          
         14      > RETURN                                                   1

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

End of function sayhello

End of class HelloWorld.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.59 ms | 1005 KiB | 14 Q