3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = '<style type="text/css"> * { font-family: Arial!important; } body { font-family: Arial; font-size: 11pt; margin: 0px; text-align: center; } body div { text-align: left; } span.green { color: #83C74F; } span.amber { color: #FFBF00; } span.red { color: #FF0000; } input { text-align: center; } h3 { margin: 0; color: #111A12; } p { margin: 0; } table { border-collapse: collapse; background-color: white; } td { padding: 1px 2px 10px; font-family: Helvetica; font-size: 11pt; vertical-align: top; } table#attendance { border-width: 0px; border-style: none; } table#attendance td { border: none; } </style> <div style="position: absolute; left: 0; top: 0; width: 52px; background-color: #83C74F; height: 712px;"></div><div style="position: absolute; right: 50px; top: 40px; width: 170px; height: 95px; text-align: right; padding: 5px;"><img id="image" src="http://localhost/ccr2-local/reports/parentReports/31/EGA.jpg" width=134 height=88 alt="" title="" /></div><div style="position: absolute; left: 70px; top: 50px; width: 480px; height: 110px;"><h3 class="title"><font size="+2"><u>Year 8: Full Report - End of Year</u></font></h3><br> <table class=\'noBorder\' id="tables"> <tbody> <tr > <td ><font color="#83C74F"><strong><font size="+1">Name:</font></strong></font></td> <td ><font size="+1">Adewoye, Oluremi</font></td> </tr> <tr > <td ><font color="#83C74F"><strong><font size="+1">Tutor:</font></strong></font></td> <td ><font size="+1">8JBA&nbsp(Mrs J. Bragahi)</font></td> </tr> </tbody> </table> </div><div style="position: absolute; left: 0; top: 165px; width: 100%; height: 30px; text-align: center;"><p><font size="+1">Please use the information in this report to continue to support your child in their learning at Evelyn Grace Academy</font></p></div><div style="position: absolute; left: 70px; top: 210px; width: 372px; height: 200px;"> <table width="100%" id="attendance"> <tbody> <tr > <td ><font color="#111A12"><strong><font size="+1">Year to Date Attendance:</font></strong></font></td> <td ><span class="green"><font size="+1">98.0%</font></span></td> </tr> <tr > <td ><font color="#111A12"><strong><font size="+1">Year to Date Late to School:</font></strong></font></td> <td ><font size="+1">1.4%</font></td> </tr> <tr > <td ><font color="#111A12"><strong><font size="+1">Unauthorised Absences:</font></strong></font></td> <td ><font size="+1">0.6%</font></td> </tr> <tr > <td colspan="2"><font size="-1"><br> Every pupil is expected to come to school every day and on time. All pupils should aim for 100% attendance and anything under 95% is unsatisfactory. There should be NO unauthorised absence.</font></td> </tr> </tbody> </table> </div><div style="position: absolute; right: 50px; top: 220px; width: 530px; height: 200px;"> <table width="100%" id="tables1"> <tbody> <tr > <td colspan="2"><font color="#111A12"><strong><font>Behaviour Events Logged to date</font></strong></font></td> </tr> <tr > <td ><font color="#111A12"><font>Merits:</font></font></td> <td style="text-align: center; width: 60px;"><font>198</font></td> </tr> <tr > <td ><font color="#111A12"><font>Level 3 Head of Department Detention:</font></font></td> <td style="text-align: center; width: 60px;"><font>3</font></td> </tr> <tr > <td ><font color="#111A12"><font>Level 4 Director of Learning Detention<br> <ul style="margin: 0; color:#111A12"><li style="list-style-type: circle; font-weight: normal;"><font>Includes Late to School and Late to lesson detentions</font></li></ul> </font></font></td> <td style="text-align: center; width: 60px;"><font>2</font></td> </tr> </tbody> </table> <br> </div><div style="position: absolute; left: 70px; top: 440px; width: 1020px; height: 270px;"> <table width="100%" id="tutorComment"> <tbody> <tr > <td ><font color="#83C74F"><strong><font size="+1">Tutor Group Leader Comments: &nbsp;<span style="color:#111A12">Mrs J. Bragahi</span></font></strong></font></td> </tr> <tr > <td style="height: 220px;vertical-align: middle;"><font color="#111A12"><font size="+1">Remi has much academic ability and is able to work very well to produce some excellent work. She has been involved in some school initiatives, such as the \'Poetry Slam\' and has been a credit to our tutor group and the school as a whole. In order to fulfil her true potential, Remi must make the right decisions both inside and outside the classroom.</font></font></td> </tr> </tbody> </table> <br> </div>'; str_replace("\n", "", $a);
Output for 4.3.0 - 4.3.11, 4.4.0 - 4.4.9, 5.0.0 - 5.0.5, 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.24 - 5.5.35, 5.6.8 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.25, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.18, 8.3.0 - 8.3.4, 8.3.6
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

preferences:
221.1 ms | 401 KiB | 326 Q