3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyClass { public $Parse = array(); public function __construct() { $this->Parse["Start"] = function ($name) { return $name; }; } } $my = new MyClass(); echo $my->{"Parse"}["Start"]("Hello");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JSnl6
function name:  (null)
number of ops:  10
compiled vars:  !0 = $my
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   NEW                                              $1      'MyClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   16     3        FETCH_OBJ_R                                      ~4      !0, 'Parse'
          4        FETCH_DIM_R                                      ~5      ~4, 'Start'
          5        INIT_DYNAMIC_CALL                                        ~5
          6        SEND_VAL_EX                                              'Hello'
          7        DO_FCALL                                      0  $6      
          8        ECHO                                                     $6
          9      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FJSnl6%3A8%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JSnl6
function name:  {closure}
number of ops:  3
compiled vars:  !0 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
    9     1      > RETURN                                                   !0
   10     2*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FJSnl6%3A8%240

Class MyClass:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JSnl6
function name:  __construct
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FJSnl6%3A8%240'
          1        FETCH_OBJ_W                                      $0      'Parse'
          2        ASSIGN_DIM                                               $0, 'Start'
   10     3        OP_DATA                                                  ~2
   11     4      > RETURN                                                   null

End of function __construct

End of class MyClass.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.36 ms | 1394 KiB | 13 Q