3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [ 'max_cards' => 4, 'messages_spam_count' => 10, 'messages_per_page' => 50, 'min_password_length' => 5, 'max_password_length' => 42, 'min_login_length' => 2, 'max_login_length' => 255, 'mailer_address' => 'noreply@onliner.by', // Mark as spam 'spam_notification_to' => array('tigra@onliner.by'), 'spam_notification_subject' => 'Блокировка за спам', 'spam_notification_user_subject' => 'Ваша учетная запись на сайте Onliner.by заблокирована', 'spam_notification_by_users_request' => 'Следующие пользователи заблокированны из-за жалоб других пользователей:<br />%s', 'spam_notification_user_text' => 'Ваша учетная запись была автоматически заблокирована из-за многочисленных жалоб о рассылке спама. Если считаете, что вас заблокировали незаслуженно, то обратитесь в службу технической поддержки нашего сайта — <a href="http://support.onliner.by">support.onliner.by</a>', 'spam_autoban_notification' => 'Следующие пользователи заблокированы при попытке массовой рассылки за короткий промежуток времени:<br />%s', 'spam_autoban_max_messages' => 10, 'spam_autoban_check_interval' => 60, // seconds, 'cookies' => [ 'regions' => [ 'gomel' => [ 'onl_region' => 'gomel', 'catalog_region_select' => 'gomel', 'region' => 'region=304', 'pogoda_region' => 33041, ] ] ], 'papi' => [ 'url' => 'http://user.papi.onliner.' . DOMAIN, ] ]; $arr = (object) $arr; var_dump($arr->cookies);
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.17, 8.3.0 - 8.3.4
Fatal error: Uncaught Error: Undefined constant "DOMAIN" in /in/40Pb8:37 Stack trace: #0 {main} thrown in /in/40Pb8 on line 37
Process exited with code 255.
Output for 7.2.0 - 7.2.33, 7.3.12 - 7.3.33, 7.4.0 - 7.4.33
Warning: Use of undefined constant DOMAIN - assumed 'DOMAIN' (this will throw an Error in a future version of PHP) in /in/40Pb8 on line 37 array(1) { ["regions"]=> array(1) { ["gomel"]=> array(4) { ["onl_region"]=> string(5) "gomel" ["catalog_region_select"]=> string(5) "gomel" ["region"]=> string(10) "region=304" ["pogoda_region"]=> int(33041) } } }
Output for 5.4.0 - 5.4.45, 5.5.24 - 5.5.35, 5.6.7 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.20
Notice: Use of undefined constant DOMAIN - assumed 'DOMAIN' in /in/40Pb8 on line 37 array(1) { ["regions"]=> array(1) { ["gomel"]=> array(4) { ["onl_region"]=> string(5) "gomel" ["catalog_region_select"]=> string(5) "gomel" ["region"]=> string(10) "region=304" ["pogoda_region"]=> int(33041) } } }
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/40Pb8 on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.3.11, 4.4.0 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected '[' in /in/40Pb8 on line 2
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/40Pb8 on line 2
Process exited with code 255.

preferences:
234.38 ms | 401 KiB | 311 Q