3v4l.org

run code in 300+ PHP versions simultaneously
<?php require_once 'https://raw.github.com/j4mie/idiorm/master/idiorm.php'; require 'https://raw.github.com/j4mie/paris/master/paris.php'; ORM::configure("sqlite:inclibs/sqlite3.db"); $db = ORM::get_db(); $db->exec("CREATE TABLE IF NOT EXISTS contact (id INTEGER PRIMARY KEY, name TEXT, email TEXT );" ); class Contact extends Model {} $contact = Contact::create(array('name' => 'nombre', 'email' => 'email'))->save(); $contact_list = Contact::find_many(); ?> <ul> <?php foreach ($contact_list as $contact): ?> <li><?php echo $contact->id; ?></li> <li> <strong><?php echo $contact->name ?></strong> <a href="mailto:<?php echo $contact->email; ?>"><?php echo $contact->email; ?></a> </li> <?php endforeach; ?> </ul>
Output for git.master, git.master_jit, rfc.property-hooks
Warning: require_once(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/ov9U0 on line 2 Warning: require_once(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/ov9U0 on line 2 Warning: require_once(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/ov9U0 on line 2 Warning: require_once(): open_basedir restriction in effect. File(https://raw.github.com/j4mie/idiorm/master/idiorm.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/ov9U0 on line 2 Warning: require_once(https://raw.github.com/j4mie/idiorm/master/idiorm.php): Failed to open stream: Operation not permitted in /in/ov9U0 on line 2 Fatal error: Uncaught Error: Failed opening required 'https://raw.github.com/j4mie/idiorm/master/idiorm.php' (include_path='.:') in /in/ov9U0:2 Stack trace: #0 {main} thrown in /in/ov9U0 on line 2
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:
44.61 ms | 402 KiB | 8 Q