3v4l.org

run code in 300+ PHP versions simultaneously
<?php $model = array(array('discount' => '2000', 'ids' => '100,1000,1000,1000'), array('discount' => '2001', 'ids' => '100,1000,1000,1000'),array('discount' => '2002', 'ids' => '100,1000,1000,1000')); foreach ($model as $k=> $mod) { $mod_2 = preg_filter('/^/', 'IC ', explode(',', $mod[ids])); print_r($mod_2); //echo $mod[discount].'-'.$mod_2[ids]; }
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Undefined constant "ids" in /in/U24ek:4 Stack trace: #0 {main} thrown in /in/U24ek on line 4
Process exited with code 255.

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:
27.35 ms | 401 KiB | 8 Q