3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1=["math","sci"]; $array2=["paper 1", "paper 2", "paper 3"]; $array3=[50, 70,80]; $array = array_fill_keys( $array1, array_combine( $array2, $array3 ) ); print_r( $array );
Output for git.master_jit, git.master, rfc.property-hooks
Array ( [math] => Array ( [paper 1] => 50 [paper 2] => 70 [paper 3] => 80 ) [sci] => Array ( [paper 1] => 50 [paper 2] => 70 [paper 3] => 80 ) )

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:
29.01 ms | 406 KiB | 5 Q