3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = 'b'; $s--; $r = 'a'; $r++;
Output for 8.5.0
Deprecated: Decrement on non-numeric string has no effect and is deprecated in /in/q5Fp3 on line 4 Deprecated: Increment on non-numeric string is deprecated, use str_increment() instead in /in/q5Fp3 on line 7
Output for 8.3.5 - 8.3.27, 8.4.9 - 8.4.15
Deprecated: Decrement on non-numeric string has no effect and is deprecated in /in/q5Fp3 on line 4
Output for 8.3.28
/bin/php-8.3.28: /usr/lib/libm.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.3.28) /bin/php-8.3.28: /usr/lib/libm.so.6: version `GLIBC_2.35' not found (required by /bin/php-8.3.28) /bin/php-8.3.28: /usr/lib/libc.so.6: version `GLIBC_2.34' not found (required by /bin/php-8.3.28) /bin/php-8.3.28: /usr/lib/libc.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.3.28)
Process exited with code 1.

preferences:
47.62 ms | 409 KiB | 5 Q