3v4l.org

run code in 300+ PHP versions simultaneously
<?php $msg = "Ce SMS est envoyé depuis SMS Coaching, w 3aywsalk m3a dik 16:20 w mli t9rah 9ola nwa7d siyed issmo Otmane bax y3raf hhhh :-D"; $res = max(array_map('ord', str_split($message))); echo $res;
Output for 8.2.0 - 8.2.18, 8.3.0 - 8.3.7
Warning: Undefined variable $message in /in/P8GOt on line 5 Deprecated: str_split(): Passing null to parameter #1 ($string) of type string is deprecated in /in/P8GOt on line 5 Fatal error: Uncaught ValueError: max(): Argument #1 ($value) must contain at least one element in /in/P8GOt:5 Stack trace: #0 /in/P8GOt(5): max(Array) #1 {main} thrown in /in/P8GOt on line 5
Process exited with code 255.
Output for 8.1.0 - 8.1.28
Warning: Undefined variable $message in /in/P8GOt on line 5 Deprecated: str_split(): Passing null to parameter #1 ($string) of type string is deprecated in /in/P8GOt on line 5 0
Output for 8.0.0 - 8.0.30
Warning: Undefined variable $message in /in/P8GOt on line 5 0
Output for 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.33
Notice: Undefined variable: message in /in/P8GOt on line 5 0
Output for 7.3.32 - 7.3.33
0
Output for 5.0.4 - 5.0.5
Notice: Undefined variable: message in /in/P8GOt on line 5 Warning: max(): Array must contain atleast one element in /in/P8GOt on line 5
Output for 5.0.0 - 5.0.3
Notice: Undefined variable: message in /in/P8GOt on line 5 Warning: max(): Array must contain atleast one element in /in/P8GOt on line 5
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: str_split() in /in/P8GOt on line 5
Process exited with code 255.
Output for 4.3.2 - 4.3.11, 4.4.0 - 4.4.4
Fatal error: Call to undefined function: str_split() in /in/P8GOt on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: str_split() in /in/P8GOt on line 5

preferences:
257.78 ms | 401 KiB | 457 Q