3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Validator { private $rules; private $enrollee; private $detectedValidationErrors; public function __construct($rules, $enrollee, $detectedValidationErrors) { $this->rules = $rules; $this->enrollee = $enrollee; $this->detectedValidationErrors = $detectedValidationErrors; } public function carryOutVerification() { foreach ($this->rules as $key => $value) { foreach ($value as $key1 => $value1) { $result = $value1($this->enrollee->get($key)); if (empty($result)==false) { $errorText = $this->detectedValidationErrors->get($key); $errorText .= $result; $this->detectedValidationErrors->set($key, $errorText); } } } } }
Output for git.master_jit, git.master, rfc.property-hooks

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:
26.04 ms | 405 KiB | 5 Q