<?php class C { function __construct($a, $b) { print_r(func_get_args()); } } $c = 'C'; $args = [10, 11]; $o = new $c(...$args);
You have javascript disabled. You will not be able to edit any code.