3v4l.org

run code in 300+ PHP versions simultaneously
<?php if(ICL_LANGUAGE_CODE=='fr'){ /* If the page is in french */ ?> <time datetime="<?php echo esc_attr(date_format($ts, 'H:i d-m-Y')) ?>" data-timezone="<?php echo esc_attr($tz_param) ?>"><?php echo date_i18n( 'H:i d-m-Y', $ts ); ?></time> // Line B <?php } ?>
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.34, 8.2.0 - 8.2.30, 8.3.0 - 8.3.30, 8.4.1 - 8.4.18, 8.5.0 - 8.5.3
Fatal error: Uncaught Error: Undefined constant "ICL_LANGUAGE_CODE" in /in/bHP1o:1 Stack trace: #0 {main} thrown in /in/bHP1o on line 1
Process exited with code 255.
Output for 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
Warning: Use of undefined constant ICL_LANGUAGE_CODE - assumed 'ICL_LANGUAGE_CODE' (this will throw an Error in a future version of PHP) in /in/bHP1o on line 1
Output for 7.1.25 - 7.1.30
Notice: Use of undefined constant ICL_LANGUAGE_CODE - assumed 'ICL_LANGUAGE_CODE' in /in/bHP1o on line 1

preferences:
103.97 ms | 1465 KiB | 4 Q