3v4l.org

run code in 300+ PHP versions simultaneously
<? /* Tipo : classe Nome : UpLoad Data : 29/08/2003 Autor: Wonder Alexandre Luz Alves Desc : Exemplo de como utilizar a class UpLoad Versão: 1.2 */ include_once("./class_upload.php"); ?> <html> <head> <title>PHP_Upload class</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <style type="text/css"> <!-- .testo { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; } .titulo { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bolder; color:#FFFFFF; } .eu { font-family: Arial, Helvetica, sans-serif; font-size: 11px; } --> </style> </head> <body> <table align="CENTER" width="500" border="0"> <tr> <td bgcolor="000099" colspan="2"><div align="center" class="titulo">PHP Upload class</div></td> </tr> <tr> <td height="10" colspan="2"> <div align="left" class="eu"> /*<br> Tipo : classe<br> Nome : UpLoad<br> Data : 29/08/2003<br> Autor : Wonder Alexandre Luz Alves<br> Desc : Exemplo de como utilizar a class UpLoad<br> Versão : 1.2<br> Contato: <a href="mailto:wonderalexandre@yahoo.com.br">wonderalexandre@yahoo.com.br</a><br> */<br> </CENTER> </td> </tr> <tr> <td height="10" colspan="2"><div align="center"> <?php if ( $send == "ok" && $_FILES[userfile]['name'] ){ $upload = new upload(); if ($upload -> putFile ("userfile")) { print "<div class=\"testo\"><br>UpLoad do arquivo com sucesso.<br>"; print "Arquivo: "; print $upload->file_name; print "<br>Diretorio: "; print $upload->dir; print "<br><br></div>"; } if ($upload->Miniatura()) { print "<div class=\"testo\">Miniatura criada com sucesso.<br>"; print "Arquivo: "; print $upload->MINI_name; print "<br>Diretorio: "; print $upload->MINI_path; print "<br><br></div>"; $upload->Mostrar_MINI(); } } ?> </div></td> </tr> <form action="<?php $PHP_SELF; ?>" method="post" enctype="multipart/form-data"> <tr> <td colspan="2"> <p align="center"> <input name="userfile" type="file" class="testo"> </p> </td> </tr> <tr> <td colspan="2"> <p align="center"> <input name="Submit" type="submit" value="Upload File &gt;&gt;" class="testo"> <input name="send" type="hidden" value="ok"> </p></td> </tr></form> </table> </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.3.60.0080.00618.68
8.3.50.0080.01021.20
8.3.40.0060.00918.77
8.3.30.0060.00620.21
8.3.20.0070.00021.92
8.3.10.0060.00321.05
8.3.00.0040.00422.32
8.2.180.0170.00316.50
8.2.170.0130.00322.96
8.2.160.0130.00322.31
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00020.85
8.2.110.0050.00519.34
8.2.100.0080.00317.84
8.2.90.0030.00619.13
8.2.80.0000.00917.97
8.2.70.0040.00417.63
8.2.60.0080.00017.68
8.2.50.0040.00418.07
8.2.40.0000.00918.09
8.2.30.0040.00419.54
8.2.20.0040.00417.73
8.2.10.0000.00717.71
8.2.00.0000.00717.72
8.1.280.0000.01525.92
8.1.270.0040.00423.99
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0060.00323.78
8.1.230.0080.00320.96
8.1.220.0000.00818.77
8.1.210.0040.00418.89
8.1.200.0070.00317.23
8.1.190.0040.00417.43
8.1.180.0090.00018.10
8.1.170.0050.00318.64
8.1.160.0000.00718.79
8.1.150.0030.00518.67
8.1.140.0040.00417.46
8.1.130.0000.00717.83
8.1.120.0000.00717.52
8.1.110.0040.00417.48
8.1.100.0000.00717.38
8.1.90.0070.00017.41
8.1.80.0000.00717.46
8.1.70.0000.00717.31
8.1.60.0090.00017.51
8.1.50.0030.00617.54
8.1.40.0040.00417.51
8.1.30.0060.00317.55
8.1.20.0030.00517.54
8.1.10.0080.00017.40
8.1.00.0040.00417.41
8.0.300.0120.00319.32
8.0.290.0000.00716.89
8.0.280.0030.00318.53
8.0.270.0040.00417.10
8.0.260.0030.00316.84
8.0.250.0000.00716.91
8.0.240.0000.00816.90
8.0.230.0030.00316.97
8.0.220.0070.00016.92
8.0.210.0050.00316.82
8.0.200.0000.00616.85
8.0.190.0050.00216.98
8.0.180.0040.00416.95
8.0.170.0070.00016.96
8.0.160.0000.00716.89
8.0.150.0050.00316.84
8.0.140.0060.00316.89
8.0.130.0060.00013.40
8.0.120.0040.00416.86
8.0.110.0030.00516.82
8.0.100.0050.00316.99
8.0.90.0050.00317.00
8.0.80.0130.00316.92
8.0.70.0000.00816.98
8.0.60.0040.00416.83
8.0.50.0050.00316.95
8.0.30.0080.01217.00
8.0.20.0090.00917.40
8.0.10.0000.00716.91
8.0.00.0110.01016.83
7.4.330.0070.00015.02
7.4.320.0030.00316.55
7.4.300.0030.00316.38
7.4.290.0000.00716.56
7.4.280.0030.00316.57
7.4.270.0030.00316.46
7.4.260.0060.00013.20
7.4.250.0080.00016.50
7.4.240.0030.00316.54
7.4.230.0070.00016.32
7.4.220.0160.00716.43
7.4.210.0080.00816.57
7.4.200.0070.00016.55
7.4.190.0040.00416.53
7.4.160.0160.00016.55
7.4.150.0070.01017.40
7.4.140.0120.00617.86
7.4.130.0050.01216.48
7.4.120.0070.01016.40
7.4.110.0030.01616.42
7.4.100.0120.00616.40
7.4.90.0070.01016.48
7.4.80.0030.01419.39
7.4.70.0120.01216.52
7.4.60.0060.00916.59
7.4.50.0030.00616.67
7.4.40.0110.00422.77
7.4.30.0080.00816.49
7.4.00.0070.01014.94
7.3.330.0000.00513.21
7.3.320.0000.00713.08
7.3.310.0030.00416.16
7.3.300.0000.00716.30
7.3.290.0070.00716.36
7.3.280.0070.00916.31
7.3.270.0110.00717.40
7.3.260.0080.00818.24
7.3.250.0150.00716.45
7.3.240.0140.00916.56
7.3.230.0100.00716.58
7.3.210.0060.01016.45
7.3.200.0100.00719.39
7.3.190.0030.01416.32
7.3.180.0080.00816.26
7.3.170.0120.00416.39
7.3.160.0160.00016.53
7.3.120.0040.00814.88
7.2.330.0060.01016.48
7.2.320.0070.01016.39
7.2.310.0100.00716.45
7.2.300.0090.00916.54
7.2.290.0030.01316.39
7.2.00.0000.01319.45
7.1.200.0030.00615.75
7.1.100.0040.00418.04
7.1.70.0080.00016.93
7.1.60.0060.01919.17
7.1.50.0040.01816.86
7.1.00.0000.06322.46
7.0.200.0040.00416.83
7.0.140.0000.07722.01
7.0.100.0100.08319.92
7.0.90.0030.08319.90
7.0.80.0230.06019.88
7.0.70.0130.07319.85
7.0.60.0100.07720.04
7.0.50.0000.04720.29
7.0.40.0000.07719.98
7.0.30.0130.07720.06
7.0.20.0070.08319.96
7.0.10.0130.07319.97
7.0.00.0030.04020.09
5.6.280.0070.07020.91
5.6.250.0070.08320.55
5.6.240.0100.08020.65
5.6.230.0100.08020.64
5.6.220.0130.07020.57
5.6.210.0070.07720.61
5.6.200.0100.04021.09
5.6.190.0130.07021.00
5.6.180.0000.09720.96
5.6.170.0100.08020.98
5.6.160.0100.07020.98
5.6.150.0070.04021.01
5.6.140.0170.07320.91
5.6.130.0070.05021.00
5.6.120.0100.08021.06
5.6.110.0070.08320.96
5.6.100.0100.05320.90
5.6.90.0230.03721.04
5.6.80.0030.08020.36
5.6.70.0100.07720.43
5.6.60.0070.07020.43
5.6.50.0030.08320.42
5.6.40.0070.05720.33
5.6.30.0130.06320.33
5.6.20.0070.08020.41
5.6.10.0000.08720.38
5.6.00.0100.08020.23
5.5.380.0000.09020.25
5.5.370.0000.05320.30
5.5.360.0070.08720.34
5.5.350.0070.07320.34
5.5.340.0170.07020.75
5.5.330.0030.08320.72
5.5.320.0070.07320.88
5.5.310.0230.06020.78
5.5.300.0070.06020.75
5.5.290.0070.06320.83
5.5.280.0130.07720.86
5.5.270.0100.07720.82
5.5.260.0070.07720.59
5.5.250.0030.08720.38
5.5.240.0070.06320.23
5.5.230.0070.08720.25
5.5.220.0030.05720.17
5.5.210.0030.05320.11
5.5.200.0070.07720.25
5.5.190.0170.07320.16
5.5.180.0000.08320.19
5.5.160.0100.05020.16
5.5.150.0100.07320.12
5.5.140.0070.07720.16
5.5.130.0070.07720.13
5.5.120.0100.07720.13
5.5.110.0100.06320.16
5.5.100.0100.04719.91
5.5.90.0030.08020.12
5.5.80.0100.06720.03
5.5.70.0030.08320.02
5.5.60.0130.07020.10
5.5.50.0170.07020.04
5.5.40.0170.06319.95
5.5.30.0070.05020.00
5.5.20.0130.06319.91
5.5.10.0070.04319.99
5.5.00.0130.07719.86
5.4.450.0070.04319.32
5.4.440.0100.04319.48
5.4.430.0030.05019.23
5.4.420.0030.06019.36
5.4.410.0130.05319.28
5.4.400.0100.07018.84
5.4.390.0100.06719.05
5.4.380.0130.06719.04
5.4.370.0030.06719.07
5.4.360.0030.06718.95
5.4.350.0070.07319.08
5.4.340.0000.08319.09
5.4.320.0030.07719.04
5.4.310.0170.06719.11
5.4.300.0030.07319.08
5.4.290.0070.03718.97
5.4.280.0030.07719.04
5.4.270.0030.08319.14
5.4.260.0030.05019.12
5.4.250.0000.05019.03
5.4.240.0070.07019.23
5.4.230.0030.08319.09
5.4.220.0070.07719.03
5.4.210.0100.07018.90
5.4.200.0030.08018.81
5.4.190.0100.07019.04
5.4.180.0200.06019.06
5.4.170.0070.04318.94
5.4.160.0070.07318.94
5.4.150.0070.04718.89
5.4.140.0100.07016.03
5.4.130.0100.04016.29
5.4.120.0030.07716.23
5.4.110.0000.03716.36
5.4.100.0130.03016.45
5.4.90.0030.03016.34
5.4.80.0000.05016.32
5.4.70.0030.06016.43
5.4.60.0030.07316.20
5.4.50.0030.07316.20
5.4.40.0100.05716.49
5.4.30.0030.05716.19
5.4.20.0130.05316.31
5.4.10.0030.07716.32
5.4.00.0030.03715.75
5.3.290.0070.07014.61
5.3.280.0070.04314.60
5.3.270.0100.07014.56
5.3.260.0100.06314.52
5.3.250.0100.07014.46
5.3.240.0100.07014.59
5.3.230.0070.07014.60
5.3.220.0100.04014.55
5.3.210.0100.06714.48
5.3.200.0030.08014.56
5.3.190.0030.05714.56
5.3.180.0100.07014.42
5.3.170.0030.08014.48
5.3.160.0200.04714.57
5.3.150.0030.04014.55
5.3.140.0070.06714.38
5.3.130.0030.08014.39
5.3.120.0030.07014.41
5.3.110.0000.08014.54
5.3.100.0100.07013.92
5.3.90.0030.06714.02
5.3.80.0130.07013.98
5.3.70.0100.07013.88
5.3.60.0070.07713.86
5.3.50.0070.06713.96
5.3.40.0070.04313.93
5.3.30.0100.06313.77
5.3.20.0070.06313.55
5.3.10.0100.05713.41
5.3.00.0030.04713.64
5.2.170.0070.05710.99
5.2.160.0000.03311.19
5.2.150.0100.05011.17
5.2.140.0130.06010.99
5.2.130.0030.05310.95
5.2.120.0070.04711.02
5.2.110.0000.04711.05
5.2.100.0070.05010.95
5.2.90.0030.06011.07
5.2.80.0170.02711.09
5.2.70.0000.06710.94
5.2.60.0030.04311.02
5.2.50.0070.06010.97
5.2.40.0070.05310.95
5.2.30.0030.03010.98
5.2.20.0070.04310.98
5.2.10.0070.04010.77
5.2.00.0030.03710.79
5.1.60.0070.05310.07
5.1.50.0000.03310.02
5.1.40.0030.0439.99
5.1.30.0030.05010.40
5.1.20.0030.05710.38
5.1.10.0030.04710.10
5.1.00.0070.05010.09
5.0.50.0000.0478.61
5.0.40.0100.0408.30
5.0.30.0070.0638.28
5.0.20.0030.0438.05
5.0.10.0000.0408.27
5.0.00.0030.0637.98
4.4.90.0030.0176.11
4.4.80.0000.0236.11
4.4.70.0030.0336.11
4.4.60.0000.0306.11
4.4.50.0000.0306.11
4.4.40.0000.0576.11
4.4.30.0030.0276.11
4.4.20.0000.0376.11
4.4.10.0000.0206.11
4.4.00.0030.0276.11
4.3.110.0000.0336.11
4.3.100.0070.0136.13
4.3.90.0000.0176.15
4.3.80.0000.0276.18
4.3.70.0130.0236.19
4.3.60.0070.0306.19
4.3.50.0000.0236.20
4.3.40.0030.0506.20
4.3.30.0000.0206.20
4.3.20.0000.0236.20
4.3.10.0000.0176.20
4.3.00.0000.0336.20

preferences:
63.64 ms | 401 KiB | 5 Q