3v4l.org

run code in 300+ PHP versions simultaneously
<?php new class { public $property; function __construct() { $this->property = function() { print"Stuff\n"; }; call_user_func($this->property); ($this->property)(); // nOopss... } };
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dHLpO
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_ANON_CLASS                               <true>  
          1        NEW                                              $1      $0
          2        DO_FCALL                                      0          
          3        FREE                                                     $1
   17     4      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FdHLpO%3A9%241:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dHLpO
function name:  {closure}
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   ECHO                                                     'Stuff%0A'
   12     1      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FdHLpO%3A9%241

Class class@anonymous:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dHLpO
function name:  __construct
number of ops:  10
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FdHLpO%3A9%241'
          1        ASSIGN_OBJ                                               'property'
   12     2        OP_DATA                                                  ~1
   14     3        FETCH_OBJ_R                                      ~2      'property'
          4        INIT_USER_CALL                                0          'call_user_func', ~2
          5        DO_FCALL                                      0          
   15     6        FETCH_OBJ_R                                      ~4      'property'
          7        INIT_DYNAMIC_CALL                                        ~4
          8        DO_FCALL                                      0          
   16     9      > RETURN                                                   null

End of function __construct

End of class class@anonymous.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.3 ms | 1394 KiB | 13 Q