3v4l.org

run code in 300+ PHP versions simultaneously
<?php $form_validation_rules = array( array('field' => 'email', 'label' => 'E-Mail-Adresse', 'rules' => 'trim|is_unique[bdb_users.email]|valid_email|required|xss_clean'), array('field' => 'first_name', 'label' => 'Vorname', 'rules' => 'trim|required|xss_clean'), array('field' => 'last_name', 'label' => 'Nachname', 'rules' => 'trim|required|xss_clean'), array('field' => 'tel', 'label' => 'Telefon', 'rules' => 'trim|required|xss_clean'), array('field' => 'address', 'label' => 'Adresse', 'rules' => 'trim|required|xss_clean'), array('field' => 'company', 'label' => 'Unternehmen', 'rules' => 'trim|required|xss_clean'), array('field' => 'password', 'label' => 'Passwort', 'rules' => 'trim|required|xss_clean'), array('field' => 'position', 'label' => 'Position', 'rules' => 'trim|xss_clean'), array('field' => 'department', 'label' => 'Abteilung', 'rules' => 'trim|xss_clean'), array('field' => 'credits', 'label' => 'Credits', 'rules' => 'trim|required|xss_clean|integer'), ); $x = array_map(function($element){return $element['field'];}, $form_validation_rules); var_dump($x);
Output for git.master, git.master_jit, rfc.property-hooks
array(10) { [0]=> string(5) "email" [1]=> string(10) "first_name" [2]=> string(9) "last_name" [3]=> string(3) "tel" [4]=> string(7) "address" [5]=> string(7) "company" [6]=> string(8) "password" [7]=> string(8) "position" [8]=> string(10) "department" [9]=> string(7) "credits" }

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