3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php if (!defined('SEATMEDIAPORTAL_API_KEY')) { define('SEATMEDIAPORTAL_API_KEY', 'JNSDO235GHOVBR90IGIVLSIVIS74626BLDVB'); } $params = array($item['email'], null, null, 'brandportal'); // Jesli zapomniano podac klucz API dilera - dopisujemy go na poczatku argumentow. if (!in_array(SEATMEDIAPORTAL_API_KEY, $params)) { array_unshift($params, SEATMEDIAPORTAL_API_KEY); } var_dump($params);
based on VlimK
Output for 5.0.4 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
Notice: Undefined variable: item in /in/SXaq3 on line 6 array(5) { [0]=> string(36) "JNSDO235GHOVBR90IGIVLSIVIS74626BLDVB" [1]=> NULL [2]=> NULL [3]=> NULL [4]=> string(11) "brandportal" }
Output for hhvm-3.10.0

Process exited with code 153.
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: item in /in/SXaq3 on line 6 array(5) { [0]=> string(36) "JNSDO235GHOVBR90IGIVLSIVIS74626BLDVB" [1]=> NULL [2]=> NULL [3]=> NULL [4]=> string(11) "brandportal" }