3v4l.org

run code in 500+ PHP versions simultaneously
<?php class Foo { private readonly array $fruits; public function __construct() { $this->fruits = ['banana', 'pear', 'apple']; \sort($this->fruits); } } new Foo();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5POee
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   12     0  E >   NEW                                                  $0      'Foo'
          1        DO_FCALL                                          0          
          2        FREE                                                         $0
          3      > RETURN                                                       1

Class Foo:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5POee
function name:  __construct
number of ops:  7
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E >   ASSIGN_OBJ                                                   'fruits'
          1        OP_DATA                                                      <array>
    8     2        INIT_FCALL                                                   'sort'
          3        FETCH_OBJ_W                                          $1      'fruits'
          4        SEND_REF                                                     $1
          5        DO_ICALL                                                     
    9     6      > RETURN                                                       null

End of function __construct

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
159.82 ms | 1602 KiB | 14 Q