3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Bug1971; class HelloWorld { public function sayHello(): void { echo 'Hello'; } } $closure1 = \Closure::fromCallable([HelloWorld::class, 'sayHello']); $closure1();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dUmHk
function name:  (null)
number of ops:  7
compiled vars:  !0 = $closure1
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_STATIC_METHOD_CALL                                  'Closure', 'fromCallable'
          1        SEND_VAL                                                 <array>
          2        DO_FCALL                                      0  $1      
          3        ASSIGN                                                   !0, $1
   14     4        INIT_DYNAMIC_CALL                                        !0
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

Class Bug1971\HelloWorld:
Function sayhello:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dUmHk
function name:  sayHello
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   ECHO                                                     'Hello'
   10     1      > RETURN                                                   null

End of function sayhello

End of class Bug1971\HelloWorld.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.12 ms | 998 KiB | 13 Q