3v4l.org

run code in 300+ PHP versions simultaneously
<?php $temp_terms = $params_arr["pm_other_terms"]; $temp_terms = "jd, jack, jack, jb, jd"; $temp_terms_arr = explode(",", $temp_terms); pr($temp_terms_arr); array_walk($temp_terms_arr, "trimspace"); echo 123; pr($temp_terms_arr); $u_arr = array_unique($temp_terms_arr); pr($u_arr); $f_arr = array_filter($u_arr); pr($f_arr); $pm_other_terms = implode(", ", $f_arr); echo $pm_other_terms; function trimspace(&$var){ $var = trim($var); }
Output for git.master, git.master_jit
Warning: Undefined variable $params_arr in /in/stnNd on line 3 Warning: Trying to access array offset on value of type null in /in/stnNd on line 3 Fatal error: Uncaught Error: Call to undefined function pr() in /in/stnNd:6 Stack trace: #0 {main} thrown in /in/stnNd on line 6
Process exited with code 255.
Output for rfc.property-hooks
Warning: Undefined variable $params_arr in /in/stnNd on line 3 Warning: Trying to access array offset on null in /in/stnNd on line 3 Fatal error: Uncaught Error: Call to undefined function pr() in /in/stnNd:6 Stack trace: #0 {main} thrown in /in/stnNd on line 6
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:
54.68 ms | 401 KiB | 8 Q