3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i++; $array[$i] = "12A"; foreach ($array[0] as $empty); $array[1][3.1] = sprintf("%s", [$array[1][0]]); file_get_contents($array[1] + $array[1]->prop); class Warnings { static $static = "value"; function __construct() { $this->static; $this->method(); } static function method() { } } array_push($array, new Warnings(), 5, 6); $sorter = (static function(&$array) { sort($array); })->bindTo($array[2]) ?? "sort"; $arguments = new ArrayIterator([$array]); $sorter(...$arguments);

preferences:
48.01 ms | 402 KiB | 5 Q