3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [2 => 4, 5 => 3, "3" => null, -10.9 => 'foo']; echo 'array_values(): '; var_export(array_values($array)); echo "\nsplatpack: "; var_export([...$array]);
Output for git.master, git.master_jit, rfc.property-hooks
Deprecated: Implicit conversion from float -10.9 to int loses precision in /in/7apMc on line 2 array_values(): array ( 0 => 4, 1 => 3, 2 => NULL, 3 => 'foo', ) splatpack: array ( 0 => 4, 1 => 3, 2 => NULL, 3 => 'foo', )

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
67.22 ms | 401 KiB | 8 Q