3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function doSetPixels($cookie, $ssid, $fetchPixels, $sson_ssid, $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 4.3.0 - 5.0.5, 5.1.1 - 7.1.0
bool(false)
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/M1aDm on line 28
Process exited with code 255.