3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php // composer require delboy1978uk/form use Del\Form\AbstractForm; use Del\Form\Field\Text\EmailAddress; use Del\Form\Field\Text; class MemberForm extends AbstractForm { public function init() { $name = new Text('name'); $email = new EmailAddress('email'); $this->addField($email); // Put in member array field s here } } $form = new MemberForm(); $form->populate($postData); if($form->isValid()) { $data = $form->getValues(); // Filtered data! Valid input! // Do yo thang! }
Output for 7.0.0 - 7.2.6
Fatal error: Class 'Del\Form\AbstractForm' not found in /in/86hf7 on line 9
Process exited with code 255.
Output for hhvm-3.15.4
Fatal error: Uncaught Error: unknown class Del\Form\AbstractForm in /in/86hf7:9 Stack trace: #0 {main}
Process exited with code 255.
Output for 5.6.0 - 5.6.30
Fatal error: Class 'Del\Form\AbstractForm' not found in /in/86hf7 on line 10
Process exited with code 255.