3v4l.org

run code in 300+ PHP versions simultaneously
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Output for 8.4.1 - 8.4.5
Deprecated: getComments(): Implicitly marking parameter $parentId as nullable is deprecated, the explicit nullable type must be used instead in /in/KPH2h on line 3 Comment id: 1 - comment foo Comment id: 3 - comment foo 1 Comment id: 4 - comment foo 2 Comment id: 5 - comment foo 2-1 Comment id: 7 - comment foo 2-1-1 Comment id: 2 - comment bar Comment id: 6 - comment foo bar
Output for 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.32, 8.2.0 - 8.2.28, 8.3.0 - 8.3.4, 8.3.6 - 8.3.19
Comment id: 1 - comment foo Comment id: 3 - comment foo 1 Comment id: 4 - comment foo 2 Comment id: 5 - comment foo 2-1 Comment id: 7 - comment foo 2-1-1 Comment id: 2 - comment bar Comment id: 6 - comment foo bar
Output for 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 Comment id: 1 - comment foo Comment id: 3 - comment foo 1 Comment id: 4 - comment foo 2 Comment id: 5 - comment foo 2-1 Comment id: 7 - comment foo 2-1-1 Comment id: 2 - comment bar Comment id: 6 - comment foo bar
Output for 7.3.0 - 7.3.33
Parse error: syntax error, unexpected '$comment' (T_VARIABLE), expecting '(' in /in/KPH2h on line 14
Process exited with code 255.

preferences:
179.39 ms | 415 KiB | 5 Q