3v4l.org

run code in 300+ PHP versions simultaneously
<?php final class Node { public function __construct(public array $children, public mixed $data) {} } $node = new Node([2], 1); var_dump($node);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8bkmF
function name:  (null)
number of ops:  9
compiled vars:  !0 = $node
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   NEW                                              $1      'Node'
          1        SEND_VAL_EX                                              <array>
          2        SEND_VAL_EX                                              1
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $1
    8     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                                 
          8      > RETURN                                                   1

Class Node:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8bkmF
function name:  __construct
number of ops:  7
compiled vars:  !0 = $children, !1 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        ASSIGN_OBJ                                               'children'
          3        OP_DATA                                                  !0
          4        ASSIGN_OBJ                                               'data'
          5        OP_DATA                                                  !1
          6      > RETURN                                                   null

End of function __construct

End of class Node.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.35 ms | 1395 KiB | 15 Q