3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class Super { public function __construct($something) { $this->something = $something; } public static function make($array) { return array_map(function ($el) { return new static($el); }, $array); } } class Child extends Super { } echo phpversion(), "\n"; print_r(Child::make([1,2,3]));

preferences:
37.74 ms | 402 KiB | 5 Q