3v4l.org

run code in 300+ PHP versions simultaneously
<?php $comp = $values[0] == "‏Id" ? true : false; var_dump($comp, $values[0], "Id");
Output for 8.3.0 - 8.3.30, 8.4.1 - 8.4.18, 8.5.0 - 8.5.3
Warning: Undefined variable $values in /in/CauCs on line 3 Warning: Trying to access array offset on null in /in/CauCs on line 3 Warning: Undefined variable $values in /in/CauCs on line 4 Warning: Trying to access array offset on null in /in/CauCs on line 4 bool(false) NULL string(2) "Id"
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.34, 8.2.0 - 8.2.30
Warning: Undefined variable $values in /in/CauCs on line 3 Warning: Trying to access array offset on value of type null in /in/CauCs on line 3 Warning: Undefined variable $values in /in/CauCs on line 4 Warning: Trying to access array offset on value of type null in /in/CauCs on line 4 bool(false) NULL string(2) "Id"
Output for 7.4.0 - 7.4.33
Notice: Undefined variable: values in /in/CauCs on line 3 Notice: Trying to access array offset on value of type null in /in/CauCs on line 3 Notice: Undefined variable: values in /in/CauCs on line 4 Notice: Trying to access array offset on value of type null in /in/CauCs on line 4 bool(false) NULL string(2) "Id"
Output for 7.3.32 - 7.3.33
bool(false) NULL string(2) "Id"
Output for 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.31
Notice: Undefined variable: values in /in/CauCs on line 3 Notice: Undefined variable: values in /in/CauCs on line 4 bool(false) NULL string(2) "Id"

preferences:
113.53 ms | 1679 KiB | 4 Q