3v4l.org

run code in 300+ PHP versions simultaneously
<?php $translate = array( 5 => '2000', 5.1 => 'XP', 5.2 => 'XP64', 6 => 'Vista', 6.1 => '7', 6.2 => '8', 6.3 => '8.1' ); $translate[5.2] = 'x'; print_r($translate);
Output for git.master, git.master_jit, rfc.property-hooks
Deprecated: Implicit conversion from float 5.1 to int loses precision in /in/oG8jD on line 3 Deprecated: Implicit conversion from float 5.2 to int loses precision in /in/oG8jD on line 3 Deprecated: Implicit conversion from float 6.1 to int loses precision in /in/oG8jD on line 3 Deprecated: Implicit conversion from float 6.2 to int loses precision in /in/oG8jD on line 3 Deprecated: Implicit conversion from float 6.3 to int loses precision in /in/oG8jD on line 3 Deprecated: Implicit conversion from float 5.2 to int loses precision in /in/oG8jD on line 5 Array ( [5] => x [6] => 8.1 )

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:
47.59 ms | 402 KiB | 8 Q