3v4l.org

run code in 300+ PHP versions simultaneously
<?php (function (string $message) { var_dump($message); })('Hello!'); (new class { public function say(string $message) { var_dump($message); } })->say('Hello!');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mK8W2
function name:  (null)
number of ops:  11
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_LAMBDA_FUNCTION                          ~0      [0]
    5     1        INIT_DYNAMIC_CALL                                        ~0
          2        SEND_VAL_EX                                              'Hello%21'
          3        DO_FCALL                                      0          
    7     4        DECLARE_ANON_CLASS                               <indirect>  
          5        NEW                                              $3      $2
          6        DO_FCALL                                      0          
   12     7        INIT_METHOD_CALL                                         $3, 'say'
          8        SEND_VAL_EX                                              'Hello%21'
          9        DO_FCALL                                      0          
         10      > RETURN                                                   1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mK8W2
function name:  {closure}
number of ops:  5
compiled vars:  !0 = $message
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        INIT_FCALL                                               'var_dump'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
    5     4      > RETURN                                                   null

End of Dynamic Function 0

Class class@anonymous:
Function say:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mK8W2
function name:  say
number of ops:  5
compiled vars:  !0 = $message
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
   10     1        INIT_FCALL                                               'var_dump'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
   11     4      > RETURN                                                   null

End of function say

End of class class@anonymous.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.15 ms | 998 KiB | 14 Q