3v4l.org

run code in 300+ PHP versions simultaneously
<?php include('../administracion/conexion.php'); if ($_POST) { $id = $_POST['name_id']; $no_identificacion = $_POST['name_no_identificacion']; $uso = $_POST['name_uso']; $no_pisos = $_POST['name_no_pisos']; $id_mezz = $_POST['name_mezzanine']; $id_estruc_princ = $_POST['name_estruc_princ']; if ($id) { $forma = 'insertar.php'; $sql='SELECT * FROM codigos '; $where = "WHERE id='$id' "; $cod = mysql_query($sql. $where, $con); if (!$cod) {echo "No se puedo efectaur la consulta de datos"; mysql_close($con); exit; } while ($filacod = mysql_fetch_array($cod)) { $sede=$filacod['sede']; $departamento=$filacod['departamento']; $municipio=$filacod['municipio']; } } else { $forma = 'captura.php'; } } else { $forma = 'captura.php'; } print("<form action = $forma method = 'post' name = 'formulario'>"); $colspan = '2'; print("<table align = 'center'>"); print("<tr><td align='right' colspan = '$colspan'><font color = 'red'><b>* = Campos obligatorios.</b></font></td></tr>"); print("<tr bgcolor='#D3DCE3'>"); print("<td align = 'center' colspan = '$colspan'><b>Estudio Sena</b></td>"); print("</tr>"); print("<tr>"); print("<td>C&oacute;digo<font color = 'red'><b> * </b></font></td>"); $sql = "SELECT * FROM codigos "; if ('$id') { $where = " "; } else { $where = "WHERE id=$id "; } $order = "ORDER BY id "; $cod = mysql_query($sql. $where. $order, $con); if (!$cod) { echo "No se puedo efectaur la consulta"; mysql_close($con); exit; } print("<td>"); print("<select name = 'name_id' onchange = 'submit()'>"); if (!$id) { print("<option value = ''> -- Seleccione Opci&oacute;n -- "); } while ($fila = mysql_fetch_array($cod)) { if ('$id' == $fila['id']) { print("<option value = '$fila[id]'>$fila[id] | $fila[sede]"); } else { print("<option value = '$fila[id]'>$fila[id] | $fila[sede]"); } } print("</select>"); print("</td>"); print("</tr>"); print("<tr>"); print("<td>Sede</td>"); print("<td><input name='sede' type='text' size='100' maxlength='100' value='$sede' readonly></td>"); print("</tr>"); print("<tr>"); print("<td>Departamento</td>"); print("<td><input name='departamento' type='text' size='50' maxlength='50' value='$departamento' readonly></td>"); print("</tr>"); print("<tr>"); print("<td>Municipio</td>"); print("<td><input name='municipio' type='text' size='50' maxlength='50' value='$municipio' readonly></td>"); print("</tr>"); print("<tr>"); print("<td>No. identificaci&oacute;n</td>"); print("<td><input name='name_no_identificacion' type='text' size='50' maxlength='50' value='$no_identificacion'></td>"); print("</tr>"); print("<tr>"); print("<td>Uso</td>"); print("<td><input name='name_uso' type='text' size='50' maxlength='50' value='$uso'></td>"); print("</tr>"); print("<tr>"); print("<td>No. Pisos</td>"); print("<td><input name='name_no_pisos' type='text' size='50' maxlength='50' value='$no_pisos'></td>"); print("</tr>"); print("<tr>"); print("<td>Mezzanine<font color = 'red'><b> * </b></font></td>"); $sql = "SELECT id AS id_mezz, descripcion FROM sino "; $where = " "; $order = "ORDER BY id_mezz "; $sino = mysql_query($sql. $where. $order, $con); if (!$sino) { echo "No se puedo efectaur la consulta"; mysql_close($con); exit; } print("<td>"); print("<select name = 'name_mezzanine'>"); if (!$id_mezz) { print("<option value = ''> -- Seleccione Opci&oacute;n -- "); } while ($filamezz = mysql_fetch_array($sino)) { print("<option value = '$filamezz[id_mezz]'>$filamezz[descripcion]"); } print("</select>"); print("</td>"); print("</tr>"); print("<tr>"); print("<td>Estructura Principal<font color = 'red'><b> * </b></font></td>"); $sql = "SELECT id AS id_estruc_princ, descripcion FROM estruc_princ "; $where = " "; $order = "ORDER BY id_estruc_princ "; $estpri = mysql_query($sql. $where. $order, $con); if (!$estpri) { echo "No se puedo efectaur la consulta"; mysql_close($con); exit; } print("<td>"); print("<select name = 'name_estruc_princ'>"); if (!$id_estruc_princ) { print("<option value = ''> -- Seleccione Opci&oacute;n -- "); } while ($filaestpri = mysql_fetch_array($estpri)) { print("<option value = '$filaestpri[id_estruc_princ]'>$filaestpri[descripcion]"); } print("</select>"); print("</td>"); print("</tr>"); print("</table>"); if ($id) { print("<p align = 'center'><input name = 'agregar' type = 'submit' value = 'Agregar'> <input type='button' value='Volver' onClick='history.go(-1);'>"); } ?>

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.3.60.0000.01918.66
8.3.50.0100.00621.20
8.3.40.0090.00618.87
8.3.30.0070.00719.35
8.3.20.0040.00420.29
8.3.10.0040.00421.95
8.3.00.0080.00022.39
8.2.180.0100.01016.63
8.2.170.0120.00322.96
8.2.160.0110.00419.46
8.2.150.0080.00024.18
8.2.140.0060.00324.66
8.2.130.0080.00026.16
8.2.120.0030.00519.36
8.2.110.0030.00622.24
8.2.100.0130.00317.84
8.2.90.0050.00319.36
8.2.80.0040.00418.18
8.2.70.0000.01017.75
8.2.60.0040.00418.05
8.2.50.0030.00518.07
8.2.40.0030.00618.14
8.2.30.0030.00718.16
8.2.20.0050.00317.77
8.2.10.0030.00517.91
8.2.00.0080.00017.80
8.1.280.0070.00725.92
8.1.270.0080.00022.18
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0060.00323.88
8.1.230.0090.00319.18
8.1.220.0000.00817.74
8.1.210.0030.00618.77
8.1.200.0030.00617.60
8.1.190.0050.00317.65
8.1.180.0030.00618.87
8.1.170.0080.00018.68
8.1.160.0000.00722.21
8.1.150.0040.00418.75
8.1.140.0040.00417.56
8.1.130.0030.00318.00
8.1.120.0040.00417.62
8.1.110.0080.00017.46
8.1.100.0040.00417.46
8.1.90.0050.00217.46
8.1.80.0070.00017.53
8.1.70.0070.00017.45
8.1.60.0060.00317.78
8.1.50.0000.00917.62
8.1.40.0000.00817.69
8.1.30.0030.00517.72
8.1.20.0050.00317.81
8.1.10.0050.00317.77
8.1.00.0080.00017.70
8.0.300.0070.00018.77
8.0.290.0040.00417.30
8.0.280.0030.00318.63
8.0.270.0030.00317.36
8.0.260.0000.00717.02
8.0.250.0030.00317.23
8.0.240.0040.00417.20
8.0.230.0030.00317.07
8.0.220.0000.00717.11
8.0.210.0070.00017.04
8.0.200.0000.00817.10
8.0.190.0000.00817.08
8.0.180.0000.00717.19
8.0.170.0060.00317.07
8.0.160.0000.00917.13
8.0.150.0040.00317.13
8.0.140.0030.00517.05
8.0.130.0050.00013.64
8.0.120.0030.00617.13
8.0.110.0040.00417.07
8.0.100.0050.00317.04
8.0.90.0050.00217.05
8.0.80.0130.01017.12
8.0.70.0000.00717.24
8.0.60.0080.00017.02
8.0.50.0080.00017.20
8.0.30.0080.01417.22
8.0.20.0140.01017.46
8.0.10.0000.00717.09
8.0.00.0080.01016.93
7.4.330.0050.00015.00
7.4.320.0000.00716.67
7.4.300.0030.00316.52
7.4.290.0000.00916.63
7.4.280.0070.00016.74
7.4.270.0070.00016.70
7.4.260.0030.00316.69
7.4.250.0050.00316.69
7.4.240.0050.00316.66
7.4.230.0070.00016.70
7.4.220.0150.00416.66
7.4.210.0030.01316.70
7.4.200.0000.00716.74
7.4.190.0000.00716.70
7.4.160.0090.00616.71
7.4.150.0080.00817.40
7.4.140.0110.01017.86
7.4.130.0100.01116.62
7.4.120.0150.00616.71
7.4.110.0090.00916.80
7.4.100.0090.00916.67
7.4.90.0070.01116.62
7.4.80.0110.00719.39
7.4.70.0190.00216.70
7.4.60.0170.00016.75
7.4.50.0060.00316.57
7.4.40.0100.00022.77
7.4.30.0120.00616.57
7.4.00.0040.01415.05
7.3.330.0000.00513.25
7.3.320.0030.00313.23
7.3.310.0030.00316.46
7.3.300.0070.00016.53
7.3.290.0080.01216.45
7.3.280.0130.00616.60
7.3.270.0100.01017.40
7.3.260.0070.01416.59
7.3.250.0070.01016.62
7.3.240.0030.01316.69
7.3.230.0090.00916.70
7.3.210.0120.00616.53
7.3.200.0130.00719.39
7.3.190.0140.00716.61
7.3.180.0060.00916.60
7.3.170.0030.01416.46
7.3.160.0080.00816.69
7.3.120.0060.01314.99
7.3.110.0000.01314.86
7.3.100.0090.00615.11
7.3.90.0070.00715.11
7.3.80.0100.00714.94
7.3.70.0060.01015.06
7.3.60.0030.01014.98
7.3.50.0060.00915.02
7.3.40.0070.00414.80
7.3.30.0140.00014.89
7.3.20.0060.00916.54
7.3.10.0040.01216.48
7.3.00.0130.00116.46
7.2.330.0110.00616.65
7.2.320.0070.01316.54
7.2.310.0120.00616.58
7.2.300.0040.01316.51
7.2.290.0080.00916.81
7.2.240.0090.00915.08
7.2.230.0070.01115.41
7.2.220.0030.01014.86
7.2.210.0060.00315.33
7.2.200.0070.01315.23
7.2.190.0050.00515.11
7.2.180.0060.00915.25
7.2.170.0060.01215.15
7.2.160.0060.01015.07
7.2.150.0100.00316.91
7.2.140.0150.00016.62
7.2.130.0070.00816.64
7.2.120.0050.01016.88
7.2.110.0050.01416.69
7.2.100.0100.00816.71
7.2.90.0130.00716.81
7.2.80.0100.01016.79
7.2.70.0090.00816.85
7.2.60.0110.00616.64
7.2.50.0090.00716.77
7.2.40.0140.00716.89
7.2.30.0040.01216.78
7.2.20.0130.00616.60
7.2.10.0060.01216.73
7.2.00.0070.00817.55
7.1.330.0120.00616.02
7.1.320.0080.00315.67
7.1.310.0090.00315.84
7.1.300.0060.00915.55
7.1.290.0000.01015.88
7.1.280.0080.00615.73
7.1.270.0030.00715.93
7.1.260.0060.00915.72
7.1.250.0100.00415.76
7.1.200.0260.00315.64
7.1.100.0000.01118.21
7.1.70.0090.00317.30
7.1.60.0040.01419.82
7.1.50.0140.01016.98
7.1.00.0000.09322.45
7.0.200.0000.01016.79
7.0.140.0000.07721.93
7.0.100.0130.04020.12
7.0.90.0170.06319.96
7.0.80.0030.05320.01
7.0.70.0100.06720.02
7.0.60.0370.06019.99
7.0.50.0070.04720.38
7.0.40.0070.07320.14
7.0.30.0070.08020.15
7.0.20.0170.07320.18
7.0.10.0030.07720.11
7.0.00.0130.07720.15
5.6.250.0070.06020.71
5.6.240.0070.08320.73
5.6.230.0000.08320.64
5.6.220.0070.04720.67
5.6.210.0200.06720.80
5.6.200.0170.06721.14
5.6.190.0170.07321.07
5.6.180.0130.08321.22
5.6.170.0100.06721.13
5.6.160.0070.04721.16
5.6.150.0070.08021.18
5.6.140.0170.07321.00
5.6.130.0100.07021.13
5.6.120.0170.06021.07
5.6.110.0000.05721.21
5.6.100.0100.08720.97
5.6.90.0070.08321.07
5.6.80.0030.08720.47
5.6.70.0200.06320.46
5.6.60.0130.05720.43
5.6.50.0130.06320.52
5.6.40.0170.07320.43
5.6.30.0100.07020.49
5.6.20.0130.07320.45
5.6.10.0130.07320.36
5.6.00.0030.08020.53
5.5.380.0030.07720.39
5.5.370.0130.03720.61
5.5.360.0100.07020.39
5.5.350.0030.07320.50
5.5.340.0100.08020.93
5.5.330.0030.08720.92
5.5.320.0100.08020.91
5.5.310.0130.07020.98
5.5.300.0130.06020.96
5.5.290.0100.06720.96
5.5.280.0130.08020.85
5.5.270.0100.08320.68
5.5.260.0070.05720.95
5.5.250.0030.06720.73
5.5.240.0100.05720.34
5.5.230.0030.08720.33
5.5.220.0170.07020.30
5.5.210.0030.08320.31
5.5.200.0030.08020.20
5.5.190.0030.04720.19
5.5.180.0200.04720.26
5.5.160.0170.06720.29
5.5.150.0100.07720.18
5.5.140.0130.07320.26
5.5.130.0070.07020.13
5.5.120.0070.04320.22
5.5.110.0070.05320.18
5.5.100.0100.07320.12
5.5.90.0070.08020.11
5.5.80.0100.07019.99
5.5.70.0030.06720.14
5.5.60.0100.06720.05
5.5.50.0070.06020.01
5.5.40.0100.07020.04
5.5.30.0000.06720.10
5.5.20.0100.07720.10
5.5.10.0100.07320.03
5.5.00.0070.08020.10
5.4.450.0030.06719.32
5.4.440.0070.08319.28
5.4.430.0100.03719.39
5.4.420.0100.07319.31
5.4.410.0230.06319.24
5.4.400.0030.08319.07
5.4.390.0070.07719.11
5.4.380.0030.07718.99
5.4.370.0100.07019.05
5.4.360.0070.07719.05
5.4.350.0100.06019.00
5.4.340.0130.07319.18
5.4.320.0070.08019.21
5.4.310.0100.07019.25
5.4.300.0000.05018.97
5.4.290.0130.06319.14
5.4.280.0070.05319.05
5.4.270.0100.06319.16
5.4.260.0130.07019.06
5.4.250.0070.07019.21
5.4.240.0070.04319.15
5.4.230.0100.05719.14
5.4.220.0000.08018.93
5.4.210.0100.06719.05
5.4.200.0030.05319.09
5.4.190.0130.06718.82
5.4.180.0130.07019.02
5.4.170.0030.08018.79
5.4.160.0030.07718.93
5.4.150.0030.04719.01
5.4.140.0130.07016.48
5.4.130.0100.06016.33
5.4.120.0000.05016.41
5.4.110.0100.06716.43
5.4.100.0070.07016.51
5.4.90.0070.07016.38
5.4.80.0070.07016.38
5.4.70.0070.03716.42
5.4.60.0070.06716.27
5.4.50.0100.07316.24
5.4.40.0070.07716.35
5.4.30.0170.06016.29
5.4.20.0030.07716.48
5.4.10.0030.04316.47
5.4.00.0130.07015.78
5.3.290.0070.07014.63
5.3.280.0030.04014.64
5.3.270.0070.07714.65
5.3.260.0100.07714.66
5.3.250.0070.07714.64
5.3.240.0100.07714.61
5.3.230.0030.07714.51
5.3.220.0070.07714.61
5.3.210.0130.06714.53
5.3.200.0030.07714.61
5.3.190.0100.07714.60
5.3.180.0070.05714.55
5.3.170.0070.07714.44
5.3.160.0130.06714.53
5.3.150.0130.06714.56
5.3.140.0030.07714.60
5.3.130.0100.06014.45
5.3.120.0030.07314.45
5.3.110.0100.07014.60
5.3.100.0100.07314.04
5.3.90.0030.07714.08
5.3.80.0170.05314.07
5.3.70.0030.07714.00
5.3.60.0000.08014.02
5.3.50.0100.07013.87
5.3.40.0000.08014.00
5.3.30.0030.07013.94
5.3.20.0030.04313.62
5.3.10.0030.07313.47
5.3.00.0070.05713.67
5.2.170.0030.03711.27
5.2.160.0030.03311.04
5.2.150.0070.06311.23
5.2.140.0000.04011.23
5.2.130.0030.05710.98
5.2.120.0070.05311.15
5.2.110.0000.06711.16
5.2.100.0100.05311.02
5.2.90.0000.06711.16
5.2.80.0070.06311.17
5.2.70.0100.05311.16
5.2.60.0030.04311.10
5.2.50.0000.06311.10
5.2.40.0000.06010.97
5.2.30.0000.06011.07
5.2.20.0130.04711.10
5.2.10.0030.06710.98
5.2.00.0030.05710.74
5.1.60.0070.04310.12
5.1.50.0030.05310.17
5.1.40.0100.04010.07
5.1.30.0030.05710.47
5.1.20.0070.05310.38
5.1.10.0100.05710.25
5.1.00.0100.04710.16
5.0.50.0030.0478.71
5.0.40.0100.0378.60
5.0.30.0030.0678.42
5.0.20.0070.0208.30
5.0.10.0030.0338.36
5.0.00.0030.0608.37
4.4.90.0030.0238.04
4.4.80.0100.0278.04
4.4.70.0000.0378.04
4.4.60.0030.0238.04
4.4.50.0000.0378.04
4.4.40.0000.0538.04
4.4.30.0070.0308.04
4.4.20.0030.0208.04
4.4.10.0070.0338.04
4.4.00.0000.0578.04
4.3.110.0070.0338.04
4.3.100.0030.0338.04
4.3.90.0070.0308.04
4.3.80.0030.0438.04
4.3.70.0000.0378.04
4.3.60.0030.0338.04
4.3.50.0030.0338.04
4.3.40.0070.0508.04
4.3.30.0000.0378.04
4.3.20.0000.0378.04
4.3.10.0030.0238.04
4.3.00.0070.0308.04

preferences:
47.24 ms | 401 KiB | 5 Q