3v4l.org

run code in 300+ PHP versions simultaneously
<?php $p1['x'] = 2; $p1['y'] = 2; $p2['x'] = 2; $p2['y'] = 8; $p3['x'] = 8; $p3['y'] = 8; $s1['x'] = ($p2['x'] - $p1['x']); $s1['y'] = ($p2['y'] - $p1['y']); $s2['x'] = ($p3['x'] - $p2['x']); $s2['y'] = ($p3['y'] - $p2['y']); $o = (int)($s1['x']/1000); $f1['y'] = (int)($s1['y'] * $o); $o = (int)($s2['y']/1000); $f2['x'] = (int)($s2['x'] * $o); echo '<pre>'; print_r($GLOBALS); echo '</pre>';
Output for git.master, git.master_jit, rfc.property-hooks
<pre>Array ( [_GET] => Array ( ) [_POST] => Array ( ) [_COOKIE] => Array ( ) [_FILES] => Array ( ) [argv] => Array ( [0] => /in/jb8MI ) [argc] => 1 [_SERVER] => Array ( [TERM] => xterm [PATH] => /usr/bin:/bin [LANG] => C [SHELL] => /bin/sh [MAIL] => /var/mail/nobody [LOGNAME] => nobody [USER] => nobody [HOME] => /tmp [PHP_SELF] => /in/jb8MI [SCRIPT_NAME] => /in/jb8MI [SCRIPT_FILENAME] => /in/jb8MI [PATH_TRANSLATED] => /in/jb8MI [DOCUMENT_ROOT] => [REQUEST_TIME_FLOAT] => 1455602788.0001 [REQUEST_TIME] => 1455602788 [argv] => Array ( [0] => /in/jb8MI ) [argc] => 1 ) [p1] => Array ( [x] => 2 [y] => 2 ) [p2] => Array ( [x] => 2 [y] => 8 ) [p3] => Array ( [x] => 8 [y] => 8 ) [s1] => Array ( [x] => 0 [y] => 6 ) [s2] => Array ( [x] => 6 [y] => 0 ) [o] => 0 [f1] => Array ( [y] => 0 ) [f2] => Array ( [x] => 0 ) ) </pre>

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:
63.02 ms | 404 KiB | 8 Q