3v4l.org

run code in 300+ PHP versions simultaneously
<?php function doSetPixels($cookie, $ssid, $fetchPixels, $sson_sid, $loggedIn) { $isCookieMissing = $loggedIn && $cookie===null && $ssid; $isExplicitRequest = !is_null($fetchPixels); $sapSessionDiffers = !$sson_ssid || $sson_ssid !== $ssid; $setPixels = ( $isExplicitRequest || $isCookieMissing ) && $sapSessionDiffers; return $setPixels; } function simpler($c,$s,$f) { return doSetPixels($c,$s,null,$f,false); } var_dump(simpler(12,13,15)); var_dump(simpler(12,12,12)); var_dump(simpler(12,12,15)); var_dump(simpler(12,13,12)); var_dump(simpler(12,15,15)); var_dump(simpler(null,null,null)); var_dump(simpler(12,null,null)); var_dump(simpler(null,13,null)); var_dump(simpler(null,13,15)); var_dump(simpler(12,13,null)); var_dump(simpler(null,13,15)); var_dump(simpler(12,null,13));
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined variable $sson_ssid in /in/LQGcJ on line 6 bool(false) Warning: Undefined variable $sson_ssid in /in/LQGcJ on line 6 bool(false) Warning: Undefined variable $sson_ssid in /in/LQGcJ on line 6 bool(false) Warning: Undefined variable $sson_ssid in /in/LQGcJ on line 6 bool(false) Warning: Undefined variable $sson_ssid in /in/LQGcJ on line 6 bool(false) Warning: Undefined variable $sson_ssid in /in/LQGcJ on line 6 bool(false) Warning: Undefined variable $sson_ssid in /in/LQGcJ on line 6 bool(false) Warning: Undefined variable $sson_ssid in /in/LQGcJ on line 6 bool(false) Warning: Undefined variable $sson_ssid in /in/LQGcJ on line 6 bool(false) Warning: Undefined variable $sson_ssid in /in/LQGcJ on line 6 bool(false) Warning: Undefined variable $sson_ssid in /in/LQGcJ on line 6 bool(false) Warning: Undefined variable $sson_ssid in /in/LQGcJ on line 6 bool(false)

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:
34.93 ms | 403 KiB | 8 Q