3v4l.org

run code in 500+ PHP versions simultaneously
<?php $nombre = $_GET['nombre'] ?? 'Invitado'; $pais = $_GET['pais'] ?? 'Desconocido'; $edad = $_GET['edad'] ?? '0'; ?> <!DOCTYPE html> <html lang="es"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Pasaporte de Usuario</title> <style> body { background-color: #1e293b; display: flex; align-items: center; justify-content: center; height: 100vh; margin: 0; } .pasaporte { background-color: #fef3c7; border: 4px solid #78350f; border-radius: 0.75rem; padding: 1.5rem; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); max-width: 400px; width: 100%; position: relative; box-sizing: border-box; } .marca-agua { position: absolute; right: 1rem; top: 1rem; color: rgba(120, 53, 15, 0.08); font-weight: bold; font-size: 3.5rem; font-family: system-ui, sans-serif; user-select: none; } h2 { font-family: monospace; font-size: 1.25rem; color: #78350f; border-bottom: 2px solid #78350f; padding-bottom: 0.5rem; margin: 0 0 1rem 0; letter-spacing: 0.1em; text-align: center; } .bloque-dato { margin-bottom: 0.75rem; } .etiqueta { font-size: 0.75rem; color: #b45309; display: block; text-transform: uppercase; font-family: system-ui, sans-serif; } .valor { font-family: monospace; font-size: 1.125rem; font-weight: bold; color: #451a03; text-transform: uppercase; } footer { margin-top: 1.5rem; padding-top: 0.5rem; border-top: 1px dashed #78350f; text-align: center; font-size: 0.75rem; color: #b45309; font-family: system-ui, sans-serif; } </style> </head> <body> <div class="pasaporte"> <div class="marca-agua">PASSPORT</div> <h2>PASAPORTE DE CONTROL</h2> <div class="bloque-dato"> <span class="etiqueta">Nombre del Viajero:</span> <span class="valor"><?php echo htmlspecialchars($nombre); ?></span> </div> <div class="bloque-dato"> <span class="etiqueta">Lugar de origen:</span> <span class="valor"><?php echo htmlspecialchars($pais); ?></span> </div> <div class="bloque-dato"> <span class="etiqueta">Edad del pasajero:</span> <span class="valor"><?php echo htmlspecialchars($edad); ?> años</span> </div> <footer>DOCUMENTO PROCESADO POR EL SERVIDOR</footer> </div> </body> </html><?php $nombre = $_GET['nombre'] ?? 'Invitado'; $pais = $_GET['pais'] ?? 'Desconocido'; $edad = $_GET['edad'] ?? '0'; ?> <!DOCTYPE html> <html lang="es"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Pasaporte de Usuario</title> <style> body { background-color: #1e293b; display: flex; align-items: center; justify-content: center; height: 100vh; margin: 0; } .pasaporte { background-color: #fef3c7; border: 4px solid #78350f; border-radius: 0.75rem; padding: 1.5rem; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); max-width: 400px; width: 100%; position: relative; box-sizing: border-box; } .marca-agua { position: absolute; right: 1rem; top: 1rem; color: rgba(120, 53, 15, 0.08); font-weight: bold; font-size: 3.5rem; font-family: system-ui, sans-serif; user-select: none; } h2 { font-family: monospace; font-size: 1.25rem; color: #78350f; border-bottom: 2px solid #78350f; padding-bottom: 0.5rem; margin: 0 0 1rem 0; letter-spacing: 0.1em; text-align: center; } .bloque-dato { margin-bottom: 0.75rem; } .etiqueta { font-size: 0.75rem; color: #b45309; display: block; text-transform: uppercase; font-family: system-ui, sans-serif; } .valor { font-family: monospace; font-size: 1.125rem; font-weight: bold; color: #451a03; text-transform: uppercase; } footer { margin-top: 1.5rem; padding-top: 0.5rem; border-top: 1px dashed #78350f; text-align: center; font-size: 0.75rem; color: #b45309; font-family: system-ui, sans-serif; } </style> </head> <body> <div class="pasaporte"> <div class="marca-agua">PASSPORT</div> <h2>PASAPORTE DE CONTROL</h2> <div class="bloque-dato"> <span class="etiqueta">Nombre del Viajero:</span> <span class="valor"><?php echo htmlspecialchars($nombre); ?></span> </div> <div class="bloque-dato"> <span class="etiqueta">Lugar de origen:</span> <span class="valor"><?php echo htmlspecialchars($pais); ?></span> </div> <div class="bloque-dato"> <span class="etiqueta">Edad del pasajero:</span> <span class="valor"><?php echo htmlspecialchars($edad); ?> años</span> </div> <footer>DOCUMENTO PROCESADO POR EL SERVIDOR</footer> </div> </body> </html>

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.5.80.0080.01016.75
8.5.70.0190.00716.68
8.5.60.0150.00818.31
8.5.50.0170.00316.54
8.5.40.0210.00316.68
8.5.30.0070.00816.74
8.5.20.0130.00016.65
8.5.10.0130.00816.25
8.5.00.0060.00216.74
8.4.230.0130.00619.45
8.4.220.0170.00319.15
8.4.210.0150.00619.31
8.4.200.0150.00519.39
8.4.190.0200.00319.29
8.4.180.0140.00419.56
8.4.170.0170.00219.68
8.4.160.0130.00519.37
8.4.150.0140.00719.46
8.4.140.0170.00417.67
8.4.130.0050.00517.61
8.4.120.0150.00517.69
8.4.110.0140.00517.54
8.4.100.0160.00417.71
8.4.90.0160.00417.73
8.4.80.0160.00717.64
8.4.70.0200.00917.63
8.4.60.0190.00317.70
8.4.50.0150.00517.24
8.4.40.0200.00317.50
8.4.30.0190.00217.47
8.4.20.0160.00417.63
8.4.10.0180.00217.68
8.3.320.0050.00418.61
8.3.310.0100.00718.51
8.3.300.0120.00618.01
8.3.290.0140.00818.36
8.3.280.0140.00318.18
8.3.270.0230.00616.57
8.3.260.0180.00516.36
8.3.250.0160.00416.52
8.3.240.0210.00916.54
8.3.230.0180.00416.49
8.3.220.0260.00416.54
8.3.210.0240.00416.50
8.3.200.0290.00616.46
8.3.190.0200.00716.50
8.3.180.0360.00916.46
8.3.170.0170.00816.64
8.3.160.0200.00316.57
8.3.150.0140.00516.64
8.3.140.0150.00616.38
8.3.130.0130.00516.46
8.3.120.0140.00416.55
8.3.110.0120.00616.48
8.3.100.0160.00316.57
8.3.90.0170.00516.50
8.3.80.0180.00416.52
8.3.70.0160.00516.61
8.3.60.0140.00716.57
8.3.50.0150.00416.66
8.3.40.0180.00517.68
8.3.30.0110.00617.83
8.3.20.0200.00517.79
8.3.10.0140.00817.90
8.3.00.0140.00317.72
8.2.320.0170.00317.78
8.2.310.0150.00217.62

preferences:
59.57 ms | 1311 KiB | 5 Q