3v4l.org

run code in 500+ PHP versions simultaneously
<?php class A{ public function __invoke(){ return 'hello'; } } function hello($name) { echo "Hello, $name!" . PHP_EOL; } $a = new A(); $a()('Jim');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NubEA
function name:  (null)
number of ops:  9
compiled vars:  !0 = $a
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   13     0  E >   NEW                                                  $1      'A'
          1        DO_FCALL                                          0          
          2        ASSIGN                                                       !0, $1
   14     3        INIT_DYNAMIC_CALL                                            !0
          4        DO_FCALL                                          0  $4      
          5        INIT_DYNAMIC_CALL                                            $4
          6        SEND_VAL_EX                                                  'Jim'
          7        DO_FCALL                                          0          
          8      > RETURN                                                       1

Function hello:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NubEA
function name:  hello
number of ops:  7
compiled vars:  !0 = $name
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    9     0  E >   RECV                                                 !0      
   10     1        ROPE_INIT                                         3  ~2      'Hello%2C+'
          2        ROPE_ADD                                          1  ~2      ~2, !0
          3        ROPE_END                                          2  ~1      ~2, '%21'
          4        CONCAT                                               ~4      ~1, '%0A'
          5        ECHO                                                         ~4
   11     6      > RETURN                                                       null

End of function hello

Class A:
Function __invoke:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NubEA
function name:  __invoke
number of ops:  2
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    5     0  E > > RETURN                                                       'hello'
    6     1*     > RETURN                                                       null

End of function __invoke

End of class A.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
160.19 ms | 2231 KiB | 13 Q