3v4l.org

run code in 500+ PHP versions simultaneously
<?php declare(strict_types=1); namespace Kata\List; final class SomeClass { public function hello(): string { return 'Hello'; } } $foo = new \Kata\List\SomeClass(); echo $foo->hello();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QBqOF
function name:  (null)
number of ops:  7
compiled vars:  !0 = $foo
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   13     0  E >   NEW                                                  $1      'Kata%5CList%5CSomeClass'
          1        DO_FCALL                                          0          
          2        ASSIGN                                                       !0, $1
   14     3        INIT_METHOD_CALL                                             !0, 'hello'
          4        DO_FCALL                                          0  $4      
          5        ECHO                                                         $4
          6      > RETURN                                                       1

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

End of function hello

End of class Kata\List\SomeClass.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
126.43 ms | 475 KiB | 7 Q