3v4l.org

run code in 300+ PHP versions simultaneously
<?php $advanced_settings = []; echo (bool) $advanced_settings['consent_mode'] ?? TRUE; echo (bool) ($advanced_settings['consent_mode'] ?? TRUE);
Output for 8.1.0 - 8.1.30, 8.2.0 - 8.2.25, 8.3.0 - 8.3.14
Warning: Undefined array key "consent_mode" in /in/b9Rt5 on line 5 1

preferences:
59.98 ms | 406 KiB | 5 Q